<!DOCTYPE html><html><head>
      <title>C++&#x7F16;&#x7801;&#x89C4;&#x8303;</title>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      
      <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.15.3/dist/katex.min.css">
      
      
      
      
      
      
      
      
      
      <style>
      /**
 * prism.js Github theme based on GitHub's theme.
 * @author Sam Clarke
 */
code[class*="language-"],
pre[class*="language-"] {
  color: #333;
  background: none;
  font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.4;

  -moz-tab-size: 8;
  -o-tab-size: 8;
  tab-size: 8;

  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
  padding: .8em;
  overflow: auto;
  /* border: 1px solid #ddd; */
  border-radius: 3px;
  /* background: #fff; */
  background: #f5f5f5;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
  padding: .1em;
  border-radius: .3em;
  white-space: normal;
  background: #f5f5f5;
}

.token.comment,
.token.blockquote {
  color: #969896;
}

.token.cdata {
  color: #183691;
}

.token.doctype,
.token.punctuation,
.token.variable,
.token.macro.property {
  color: #333;
}

.token.operator,
.token.important,
.token.keyword,
.token.rule,
.token.builtin {
  color: #a71d5d;
}

.token.string,
.token.url,
.token.regex,
.token.attr-value {
  color: #183691;
}

.token.property,
.token.number,
.token.boolean,
.token.entity,
.token.atrule,
.token.constant,
.token.symbol,
.token.command,
.token.code {
  color: #0086b3;
}

.token.tag,
.token.selector,
.token.prolog {
  color: #63a35c;
}

.token.function,
.token.namespace,
.token.pseudo-element,
.token.class,
.token.class-name,
.token.pseudo-class,
.token.id,
.token.url-reference .token.variable,
.token.attr-name {
  color: #795da3;
}

.token.entity {
  cursor: help;
}

.token.title,
.token.title .token.punctuation {
  font-weight: bold;
  color: #1d3e81;
}

.token.list {
  color: #ed6a43;
}

.token.inserted {
  background-color: #eaffea;
  color: #55a532;
}

.token.deleted {
  background-color: #ffecec;
  color: #bd2c00;
}

.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}


/* JSON */
.language-json .token.property {
  color: #183691;
}

.language-markup .token.tag .token.punctuation {
  color: #333;
}

/* CSS */
code.language-css,
.language-css .token.function {
  color: #0086b3;
}

/* YAML */
.language-yaml .token.atrule {
  color: #63a35c;
}

code.language-yaml {
  color: #183691;
}

/* Ruby */
.language-ruby .token.function {
  color: #333;
}

/* Markdown */
.language-markdown .token.url {
  color: #795da3;
}

/* Makefile */
.language-makefile .token.symbol {
  color: #795da3;
}

.language-makefile .token.variable {
  color: #183691;
}

.language-makefile .token.builtin {
  color: #0086b3;
}

/* Bash */
.language-bash .token.keyword {
  color: #0086b3;
}

/* highlight */
pre[data-line] {
  position: relative;
  padding: 1em 0 1em 3em;
}
pre[data-line] .line-highlight-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  background-color: transparent;
  display: block;
  width: 100%;
}

pre[data-line] .line-highlight {
  position: absolute;
  left: 0;
  right: 0;
  padding: inherit 0;
  margin-top: 1em;
  background: hsla(24, 20%, 50%,.08);
  background: linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
  pointer-events: none;
  line-height: inherit;
  white-space: pre;
}

pre[data-line] .line-highlight:before, 
pre[data-line] .line-highlight[data-end]:after {
  content: attr(data-start);
  position: absolute;
  top: .4em;
  left: .6em;
  min-width: 1em;
  padding: 0 .5em;
  background-color: hsla(24, 20%, 50%,.4);
  color: hsl(24, 20%, 95%);
  font: bold 65%/1.5 sans-serif;
  text-align: center;
  vertical-align: .3em;
  border-radius: 999px;
  text-shadow: none;
  box-shadow: 0 1px white;
}

pre[data-line] .line-highlight[data-end]:after {
  content: attr(data-end);
  top: auto;
  bottom: .4em;
}html body{font-family:"Helvetica Neue",Helvetica,"Segoe UI",Arial,freesans,sans-serif;font-size:16px;line-height:1.6;color:#333;background-color:#fff;overflow:initial;box-sizing:border-box;word-wrap:break-word}html body>:first-child{margin-top:0}html body h1,html body h2,html body h3,html body h4,html body h5,html body h6{line-height:1.2;margin-top:1em;margin-bottom:16px;color:#000}html body h1{font-size:2.25em;font-weight:300;padding-bottom:.3em}html body h2{font-size:1.75em;font-weight:400;padding-bottom:.3em}html body h3{font-size:1.5em;font-weight:500}html body h4{font-size:1.25em;font-weight:600}html body h5{font-size:1.1em;font-weight:600}html body h6{font-size:1em;font-weight:600}html body h1,html body h2,html body h3,html body h4,html body h5{font-weight:600}html body h5{font-size:1em}html body h6{color:#5c5c5c}html body strong{color:#000}html body del{color:#5c5c5c}html body a:not([href]){color:inherit;text-decoration:none}html body a{color:#08c;text-decoration:none}html body a:hover{color:#00a3f5;text-decoration:none}html body img{max-width:100%}html body>p{margin-top:0;margin-bottom:16px;word-wrap:break-word}html body>ul,html body>ol{margin-bottom:16px}html body ul,html body ol{padding-left:2em}html body ul.no-list,html body ol.no-list{padding:0;list-style-type:none}html body ul ul,html body ul ol,html body ol ol,html body ol ul{margin-top:0;margin-bottom:0}html body li{margin-bottom:0}html body li.task-list-item{list-style:none}html body li>p{margin-top:0;margin-bottom:0}html body .task-list-item-checkbox{margin:0 .2em .25em -1.8em;vertical-align:middle}html body .task-list-item-checkbox:hover{cursor:pointer}html body blockquote{margin:16px 0;font-size:inherit;padding:0 15px;color:#5c5c5c;background-color:#f0f0f0;border-left:4px solid #d6d6d6}html body blockquote>:first-child{margin-top:0}html body blockquote>:last-child{margin-bottom:0}html body hr{height:4px;margin:32px 0;background-color:#d6d6d6;border:0 none}html body table{margin:10px 0 15px 0;border-collapse:collapse;border-spacing:0;display:block;width:100%;overflow:auto;word-break:normal;word-break:keep-all}html body table th{font-weight:bold;color:#000}html body table td,html body table th{border:1px solid #d6d6d6;padding:6px 13px}html body dl{padding:0}html body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:bold}html body dl dd{padding:0 16px;margin-bottom:16px}html body code{font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:.85em !important;color:#000;background-color:#f0f0f0;border-radius:3px;padding:.2em 0}html body code::before,html body code::after{letter-spacing:-0.2em;content:"\00a0"}html body pre>code{padding:0;margin:0;font-size:.85em !important;word-break:normal;white-space:pre;background:transparent;border:0}html body .highlight{margin-bottom:16px}html body .highlight pre,html body pre{padding:1em;overflow:auto;font-size:.85em !important;line-height:1.45;border:#d6d6d6;border-radius:3px}html body .highlight pre{margin-bottom:0;word-break:normal}html body pre code,html body pre tt{display:inline;max-width:initial;padding:0;margin:0;overflow:initial;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}html body pre code:before,html body pre tt:before,html body pre code:after,html body pre tt:after{content:normal}html body p,html body blockquote,html body ul,html body ol,html body dl,html body pre{margin-top:0;margin-bottom:16px}html body kbd{color:#000;border:1px solid #d6d6d6;border-bottom:2px solid #c7c7c7;padding:2px 4px;background-color:#f0f0f0;border-radius:3px}@media print{html body{background-color:#fff}html body h1,html body h2,html body h3,html body h4,html body h5,html body h6{color:#000;page-break-after:avoid}html body blockquote{color:#5c5c5c}html body pre{page-break-inside:avoid}html body table{display:table}html body img{display:block;max-width:100%;max-height:100%}html body pre,html body code{word-wrap:break-word;white-space:pre}}.markdown-preview{width:100%;height:100%;box-sizing:border-box}.markdown-preview .pagebreak,.markdown-preview .newpage{page-break-before:always}.markdown-preview pre.line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}.markdown-preview pre.line-numbers>code{position:relative}.markdown-preview pre.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:1em;font-size:100%;left:0;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.markdown-preview pre.line-numbers .line-numbers-rows>span{pointer-events:none;display:block;counter-increment:linenumber}.markdown-preview pre.line-numbers .line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}.markdown-preview .mathjax-exps .MathJax_Display{text-align:center !important}.markdown-preview:not([for="preview"]) .code-chunk .btn-group{display:none}.markdown-preview:not([for="preview"]) .code-chunk .status{display:none}.markdown-preview:not([for="preview"]) .code-chunk .output-div{margin-bottom:16px}.scrollbar-style::-webkit-scrollbar{width:8px}.scrollbar-style::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}.scrollbar-style::-webkit-scrollbar-thumb{border-radius:5px;background-color:rgba(150,150,150,0.66);border:4px solid rgba(150,150,150,0.66);background-clip:content-box}html body[for="html-export"]:not([data-presentation-mode]){position:relative;width:100%;height:100%;top:0;left:0;margin:0;padding:0;overflow:auto}html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{position:relative;top:0}@media screen and (min-width:914px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{padding:2em calc(50% - 457px + 2em)}}@media screen and (max-width:914px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{padding:2em}}@media screen and (max-width:450px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{font-size:14px !important;padding:1em}}@media print{html body[for="html-export"]:not([data-presentation-mode]) #sidebar-toc-btn{display:none}}html body[for="html-export"]:not([data-presentation-mode]) #sidebar-toc-btn{position:fixed;bottom:8px;left:8px;font-size:28px;cursor:pointer;color:inherit;z-index:99;width:32px;text-align:center;opacity:.4}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] #sidebar-toc-btn{opacity:1}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc{position:fixed;top:0;left:0;width:300px;height:100%;padding:32px 0 48px 0;font-size:14px;box-shadow:0 0 4px rgba(150,150,150,0.33);box-sizing:border-box;overflow:auto;background-color:inherit}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar{width:8px}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar-thumb{border-radius:5px;background-color:rgba(150,150,150,0.66);border:4px solid rgba(150,150,150,0.66);background-clip:content-box}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc a{text-decoration:none}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc ul{padding:0 1.6em;margin-top:.8em}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc li{margin-bottom:.8em}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc ul{list-style-type:none}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{left:300px;width:calc(100% -  300px);padding:2em calc(50% - 457px -  150px);margin:0;box-sizing:border-box}@media screen and (max-width:1274px){html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{padding:2em}}@media screen and (max-width:450px){html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{width:100%}}html body[for="html-export"]:not([data-presentation-mode]):not([html-show-sidebar-toc]) .markdown-preview{left:50%;transform:translateX(-50%)}html body[for="html-export"]:not([data-presentation-mode]):not([html-show-sidebar-toc]) .md-sidebar-toc{display:none}
/* Please visit the URL below for more information: */
/*   https://shd101wyy.github.io/markdown-preview-enhanced/#/customize-css */
.markdown-preview.markdown-preview {
  /*重头戏开始*/
  /*初始化格式*/
  /* 一级标题 */
  /*三个小点点*/
  /*二级标题*/
  /* 三级标题 */
  /* 四级标题 */
  /* 引用
   * 左边缘颜色 border-left-color:black;
   * 背景色 background:gray; */
  /* 引用文字 */
  /* 链接 */
  /* 加粗 */
  /* 斜体 */
  /* 加粗斜体 */
  /* 删除线 */
  /* 分割线 */
  /* 图片 */
  /*音频*/
  /*视频*/
  /* 图片描述文字 */
  /* 列表内容 */
  /*设置条纹*/
  /*设置首列不同*/
  /* 脚注文字 */
  /* 脚注上标 */
  /* 脚注超链接样式 */
  /* "参考资料"四个字 
   * 内容 content: "参考资料";
   */
  /* 参考资料编号 */
  /* 参考资料文字 */
  /* 参考资料超链接 */
  /* 参考资料解释 */
  /* 行间公式*/
  /* 行内公式*/
  /* 滑动图片*/
  /*打印时强制下一页*/
  /*容器和媒体*/
  /*代码块*/
  /* 行内代码 */
  /* 非微信代码块
    * 代码块不换行 display:-webkit-box !important;
    * 代码块换行 display:block;
    */
  /* 表格内的单元格
    * 字体大小 font-size: 16px;
    * 边框 border: 1px solid #ccc;
    * 内边距 padding: 5px 10px;
    */
  /*mpe的代码样式*/
  /*用于markdown all in one和vscode自带的预览代码样式*/
}
.markdown-preview.markdown-preview * {
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-text-size-adjust: none;
  -webkit-touch-callout: none;
  box-sizing: border-box;
}
.markdown-preview.markdown-preview body {
  line-height: 1.5em;
  letter-spacing: 0.034em;
  color: #3f3f3f;
  font-size: 16px;
  word-break: all;
  background-color: #ffffff;
  max-width: 1000px;
  /*设置最大宽度*/
  margin: 0 auto;
  /*设置内容居中*/
}
.markdown-preview.markdown-preview body p {
  padding-top: 0px;
  color: #4a4a4a;
  line-height: 1.5em;
  font-size: 16px;
  /* text-indent: 2em;*/
  /*首行缩进*/
}
.markdown-preview.markdown-preview h1::before {
  max-width: 1000px;
  content: " ";
  position: absolute;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  background: #fc625d;
  width: 12px;
  height: 12px;
  left: 10px;
  top: 30px;
  -webkit-box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
  box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
  z-index: 2;
}
.markdown-preview.markdown-preview h1 {
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 70px;
  /*background-image : url("https://www.coding4fun.com.cn/static/img/magic-code-icon.efa35a3.png");*/
  line-height: 70px;
  margin-top: 10px;
  margin-bottom: 0px;
  padding-bottom: 0em;
  border: 0px;
  /* 一级标题内容 */
  font-size: 22px;
  color: #3c70c6;
}
.markdown-preview.markdown-preview h2 {
  display: inline-block;
  background: #2dc878;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 5px;
  padding: 3px;
  box-shadow: #666666 2px 3px 1.5px 1.5px;
  position: relative;
  margin-right: 3px;
  /* 二级标题内容 */
  color: white;
  font-size: 19px;
  font-weight: normal;
  text-shadow: #666666 1px 1px 1px;
}
.markdown-preview.markdown-preview h2::after {
  display: block;
}
.markdown-preview.markdown-preview h3:before {
  content: "";
  background: size 1.5em;
  display: inline-block;
  margin-top: 0.5em;
}
.markdown-preview.markdown-preview h3 {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #113c83;
  line-height: 1.5em;
  text-indent: 0.25em;
}
.markdown-preview.markdown-preview h4:before {
  content: "";
  background: size 1.5em;
  display: inline-block;
  line-height: 1.5em;
}
.markdown-preview.markdown-preview h4 {
  display: block;
  font-size: 17px;
  font-weight: bold;
  color: #3c70c6;
  line-height: 1.5em;
  text-indent: 0.5em;
}
.markdown-preview.markdown-preview h5 {
  font-weight: bold;
  color: #219c67;
  font-size: 16px;
  text-indent: 0.75em;
}
.markdown-preview.markdown-preview h6 {
  font-size: 16px;
  color: #eb085f;
  line-height: 1.5em;
  text-align: center;
  font-style: italic;
  font-weight: bold;
}
.markdown-preview.markdown-preview blockquote {
  padding: 15px 15px 10px 10px;
  line-height: 27px;
  border-radius: 10px;
  display: block;
  border-color: #bababa;
  color: #656565;
  background-color: #f3f0ea;
  font-style: italic;
  border-left: 5px solid;
  padding-left: 1em;
  max-width: 90%;
  margin: 0 auto;
}
.markdown-preview.markdown-preview blockquote p {
  padding: 0px;
  font-size: 15px;
  color: #126b15;
}
.markdown-preview.markdown-preview a {
  color: #143974;
  text-decoration: none;
  border-bottom: 1px solid #3c70c6;
}
.markdown-preview.markdown-preview strong {
  line-height: 1.75em;
  color: #ff1818;
}
.markdown-preview.markdown-preview em {
  color: #126b15;
  /*字符间距*/
}
.markdown-preview.markdown-preview em strong {
  color: #126b15;
  /*字符间距*/
}
.markdown-preview.markdown-preview del {
  font-style: italic;
  text-decoration: line-through;
}
.markdown-preview.markdown-preview sub {
  color: #0b941b;
}
.markdown-preview.markdown-preview hr {
  height: 2px;
  padding: 0;
  border: none;
  text-align: center;
  background-image: linear-gradient(to right, rgba(60, 122, 198, 0), #063a7a, rgba(60, 122, 198, 0));
}
.markdown-preview.markdown-preview img {
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  margin-bottom: 25px;
  max-width: 90%;
}
.markdown-preview.markdown-preview audio {
  display: block;
  margin: 0 auto;
}
.markdown-preview.markdown-preview video {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 80%;
  max-height: 700px;
  margin: 0 auto;
}
@media only screen and (max-width: 480px) {
  .markdown-preview.markdown-preview {
    /*此适配不同手机型号下文字，图片的大小*/
  }
}
@media only screen and (max-width: 375px) {
  .markdown-preview.markdown-preview {
    /*此适配不同手机型号下文字，图片的大小*/
  }
}
.markdown-preview.markdown-preview figcaption {
  display: block;
  font-size: 12px;
  font-family: PingFangSC-Light;
}
.markdown-preview.markdown-preview a:hover,
.markdown-preview.markdown-preview a:active {
  text-decoration: underline;
}
.markdown-preview.markdown-preview h1,
.markdown-preview.markdown-preview h2,
.markdown-preview.markdown-preview h3,
.markdown-preview.markdown-preview h4,
.markdown-preview.markdown-preview h5,
.markdown-preview.markdown-preview h6 {
  margin-bottom: 0.25em;
  margin-top: 0.5em;
}
.markdown-preview.markdown-preview li::marker {
  color: #6116ac;
  /* 序号颜色 */
  font-weight: bolder;
  font-style: italic;
}
.markdown-preview.markdown-preview li {
  list-style-type: decimal;
  list-style-position: outside;
  color: #2073aa;
  size: 14px;
  text-indent: 0;
}
.markdown-preview.markdown-preview ul,
.markdown-preview.markdown-preview ol {
  margin: 0;
}
.markdown-preview.markdown-preview ol li {
  list-style-type: decimal;
  list-style-position: outside;
}
.markdown-preview.markdown-preview ul li {
  list-style-type: disc;
  list-style-position: outside;
}
.markdown-preview.markdown-preview body li > p {
  margin-top: 0;
  margin-bottom: 0;
}
.markdown-preview.markdown-preview body .md-meta,
.markdown-preview.markdown-preview body .md-before,
.markdown-preview.markdown-preview body .md-after {
  color: #999;
}
.markdown-preview.markdown-preview table {
  margin-bottom: 1.5em;
  margin-top: 0.5em;
  margin-left: auto;
  margin-right: auto;
  font-size: 1em;
  width: 90%;
  border: 0px;
  border-spacing: 0;
  display: table;
  /*去掉单元格间隙*/
  border-collapse: collapse;
}
.markdown-preview.markdown-preview thead {
  background-color: #e0e0e0;
  color: #000;
  text-align: left;
  vertical-align: bottom;
}
.markdown-preview.markdown-preview thead.md-table-edit {
  background-color: transparent;
}
.markdown-preview.markdown-preview thead th,
.markdown-preview.markdown-preview tfoot th {
  padding: 0.25em 0.25em 0.25em 0.4em;
  text-transform: uppercase;
}
.markdown-preview.markdown-preview th {
  text-align: center;
  font-weight: bolder;
  color: #fff;
  background-color: #353535;
}
.markdown-preview.markdown-preview td {
  vertical-align: top;
  padding: 0.25em 0.25em 0.25em 0.4em;
  color: #237465;
}
.markdown-preview.markdown-preview tr:nth-of-type(even) {
  background: #eeeded;
}
.markdown-preview.markdown-preview td:nth-child(1) {
  font-weight: bolder;
  font-style: italic;
  color: #064d8c;
}
.markdown-preview.markdown-preview caption {
  color: #000;
  font: italic 85%/1 arial, sans-serif;
  padding: 1em 0;
  text-align: center;
}
.markdown-preview.markdown-preview .md-fences {
  margin-left: 2em;
  margin-bottom: 3em;
}
.markdown-preview.markdown-preview .md-fences .CodeMirror.CodeMirror-wrap {
  top: -0.8em;
}
.markdown-preview.markdown-preview tt {
  font-size: 0.875em;
  line-height: 1.714285em;
}
.markdown-preview.markdown-preview p + ul,
.markdown-preview.markdown-preview p + ol {
  margin-top: -1em;
}
.markdown-preview.markdown-preview h3 + ul,
.markdown-preview.markdown-preview h4 + ul,
.markdown-preview.markdown-preview h5 + ul,
.markdown-preview.markdown-preview h6 + ul,
.markdown-preview.markdown-preview h3 + ol,
.markdown-preview.markdown-preview h4 + ol,
.markdown-preview.markdown-preview h5 + ol,
.markdown-preview.markdown-preview h6 + ol {
  margin-bottom: 0.75em;
}
.markdown-preview.markdown-preview li > ul,
.markdown-preview.markdown-preview li > ol {
  margin-top: inherit;
}
.markdown-preview.markdown-preview body .task-list {
  padding-left: 1rem;
}
.markdown-preview.markdown-preview body .task-list-item {
  list-style-type: none;
  margin-left: -1.8em;
}
.markdown-preview.markdown-preview body .task-list-item .task-list-item-checkbox {
  margin-right: 0.8em;
}
.markdown-preview.markdown-preview body .task-list-item input:before {
  content: '\221A';
  display: inline-block;
  width: 1.25rem;
  height: 1.5rem;
  vertical-align: middle;
  text-align: center;
  color: #ddd;
  background-color: #F3F2EE;
}
.markdown-preview.markdown-preview body .task-list-item input:checked:before,
.markdown-preview.markdown-preview body .task-list-item input[checked]:before {
  color: inherit;
}
.markdown-preview.markdown-preview body kbd {
  color: #1f0909;
}
.markdown-preview.markdown-preview .footnotes {
  padding-top: 8px;
}
.markdown-preview.markdown-preview .footnote-word {
  color: #3c70c6;
}
.markdown-preview.markdown-preview .footnote-ref {
  color: #3c70c6;
}
.markdown-preview.markdown-preview .footnote-item em {
  color: #3c70c6;
  font-size: 13px;
  font-style: normal;
  border-bottom-color: 1px dashed #3c70c6;
}
.markdown-preview.markdown-preview .footnotes-sep:before {
  background-image: none;
  background-size: none;
  display: block;
  width: auto;
  height: auto;
}
.markdown-preview.markdown-preview .footnote-num {
  color: #3c70c6;
}
.markdown-preview.markdown-preview .footnote-item p {
  color: #3c70c6;
  font-weight: bold;
}
.markdown-preview.markdown-preview .footnote-item a {
  color: #3c70c6;
}
.markdown-preview.markdown-preview .footnote-item p em {
  font-size: 14px;
  font-weight: normal;
  border-bottom: 1px dashed #3c70c6;
}
.markdown-preview.markdown-preview .block-equation svg {
  max-width: 300% !important;
}
.markdown-preview.markdown-preview .inline-equation svg {
  max-width: 300% !important;
}
.markdown-preview.markdown-preview .imageflow-img {
  display: inline-block;
  width: 100%;
  margin-bottom: 0;
}
.markdown-preview.markdown-preview .nextpage {
  page-break-after: always;
  border: 0px;
  background-image: none;
  background: none;
}
.markdown-preview.markdown-preview .container {
  width: 1100px;
  max-width: 100%;
}
.markdown-preview.markdown-preview .container img {
  max-width: 100%;
}
.markdown-preview.markdown-preview code {
  display: inline-block;
  color: #be138d;
  background-color: #e4faf8;
  border: 2px solid #ccc;
  border-radius: 5px;
  font-weight: bold;
  font-size: larger;
  padding: 2px;
  font-family: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
}
.markdown-preview.markdown-preview pre[data-line] {
  position: relative;
  padding: 1em 0 1em 3em !important;
}
.markdown-preview.markdown-preview pre[data-line] .line-highlight-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  background-color: transparent;
  display: block;
  width: 100%;
}
.markdown-preview.markdown-preview pre[data-line] .line-highlight {
  position: absolute;
  left: 0;
  right: 0;
  padding: inherit 0;
  margin-top: 1em;
  background: rgba(153, 122, 102, 0.08);
  background: linear-gradient(to right, rgba(153, 122, 102, 0.1) 70%, rgba(153, 122, 102, 0));
  pointer-events: none;
  line-height: inherit;
  white-space: pre;
}
.markdown-preview.markdown-preview pre[data-line] .line-highlight:before,
.markdown-preview.markdown-preview pre[data-line] .line-highlight[data-end]:after {
  content: attr(data-start);
  position: absolute;
  top: 0.4em;
  left: 0.6em;
  min-width: 1em;
  padding: 0 0.5em;
  background-color: rgba(153, 122, 102, 0.4);
  color: #f5f2f0;
  font: bold 65%/1.5 sans-serif;
  text-align: center;
  vertical-align: 0.3em;
  border-radius: 999px;
  text-shadow: none;
  box-shadow: 0 1px white;
}
.markdown-preview.markdown-preview pre[data-line] .line-highlight[data-end]:after {
  content: attr(data-end);
  top: auto;
  bottom: 0.4em;
}
.markdown-preview.markdown-preview pre {
  background: #f0f1f1;
  border: 0px solid #b66a07;
  border-radius: 10px;
  font: 16px/22px, "Microsoft YaHei", Arial, Sans-Serif;
  line-height: 1.15em;
  max-width: 90%;
  text-shadow: none;
  color: #000;
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.4);
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: auto;
  margin-bottom: 1em;
  margin-top: 0.5em;
  padding-top: 1em;
  padding-bottom: 1em;
  font-family: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
}
.markdown-preview.markdown-preview pre:after {
  color: #ccc;
  content: attr(data-lang);
  font-size: 16px;
  font-weight: 600;
  height: 15px;
  line-height: 15px;
  padding: 5px 10px 0;
  position: absolute;
  right: 0;
  text-align: right;
  top: 0;
}
.markdown-preview.markdown-preview .token {
  -moz-osx-font-smoothing: initial;
  -webkit-font-smoothing: initial;
  min-height: 1em;
  font-family: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
}
.markdown-preview.markdown-preview .token.comment {
  color: #0b941b;
  font-style: italic;
}
.markdown-preview.markdown-preview .token.function {
  color: #ff6600;
}
.markdown-preview.markdown-preview .token.string {
  color: blue;
}
.markdown-preview.markdown-preview .token.number {
  color: #237465;
}
.markdown-preview.markdown-preview .token.directive-hash {
  color: #06615e;
  font-weight: bolder;
}
.markdown-preview.markdown-preview .line-numbers {
  font-weight: bold;
}
.markdown-preview.markdown-preview pre code {
  font-size: large;
  width: 100%;
  background: #f5f2f0;
  border: 0px;
  padding: 1em;
  display: inline-block;
  overflow: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: black;
  border-radius: 10px;
}
.markdown-preview.markdown-preview .hljs-meta {
  color: blue;
}
.markdown-preview.markdown-preview .hljs-meta-keyword {
  color: blue;
}
.markdown-preview.markdown-preview .hljs-meta-string {
  color: blue;
}
.markdown-preview.markdown-preview .hljs-built_in {
  color: #115457;
}
.markdown-preview.markdown-preview .hljs-comment {
  color: #126b15;
  font-style: italic;
  /*斜体注释*/
}
.markdown-preview.markdown-preview .hljs-subst {
  color: #d33c16;
}
.markdown-preview.markdown-preview .hljs-number {
  color: #237465;
}
.markdown-preview.markdown-preview .hljs-string {
  color: #992d33;
}
.markdown-preview.markdown-preview .hljs-function {
  color: #631c1c;
}
.markdown-preview.markdown-preview .hljs-keyword {
  color: #3f80f8;
}
.markdown-preview.markdown-preview .hljs-params {
  color: #992d33;
}
.markdown-preview.markdown-preview .hljs-title {
  color: #fc625d;
}

      </style>
    </head>
    <body for="html-export">
      <div class="mume markdown-preview  ">
      <center>
<h1>C++&#x7F16;&#x7801;&#x89C4;&#x8303;&#x603B;&#x7ED3;</h1>
</center>
<p>&#x5BF9;&#x4E8E;&#x9AD8;&#x8D28;&#x91CF;&#x7684;&#x5DE5;&#x7A0B;&#xFF0C;&#x4E00;&#x822C;&#x4F1A;&#x505A;&#x5230;&#xFF1A;</p>
<ul>
<li>&#x4EE3;&#x7801;&#x7B80;&#x6D01;&#x7CBE;&#x70BC;&#xFF0C;&#x7F8E;&#x89C2;&#xFF0C;&#x53EF;&#x8BFB;&#x6027;&#x597D;&#xFF0C;&#x9AD8;&#x6548;&#x7387;&#xFF0C;&#x9AD8;&#x590D;&#x7528;&#xFF0C;&#x53EF;&#x79FB;&#x690D;&#x6027;&#x597D;&#xFF0C;&#x9AD8;&#x5185;&#x805A;&#xFF0C;&#x4F4E;&#x8026;&#x5408;&#xFF0C;&#x6CA1;&#x6709;&#x5197;&#x4F59;&#xFF0C;- &#x4E0D;&#x7B26;&#x5408;&#x8FD9;&#x4E9B;&#x539F;&#x5219;&#xFF0C;&#x5FC5;&#x987B;&#x7279;&#x522B;&#x8BF4;&#x660E;&#x3002;</li>
<li>&#x89C4;&#x8303;&#x6027;&#xFF0C;&#x4EE3;&#x7801;&#x6709;&#x89C4;&#x53EF;&#x5FAA;&#x3002;&#x7279;&#x6B8A;&#x6392;&#x7248;&#x3001;&#x7279;&#x6B8A;&#x8BED;&#x6CD5;&#x3001;&#x7279;&#x6B8A;&#x6307;&#x4EE4;&#xFF0C;&#x5FC5;&#x987B;&#x7279;&#x522B;&#x8BF4;&#x660E;&#x3002;</li>
</ul>
<p>&#x4EE5;&#x4E0B;&#x662F;&#x4E00;&#x4E9B;&#x4ECB;&#x7ECD;&#x7F16;&#x7801;&#x3001;&#x7F16;&#x7801;&#x89C4;&#x8303;&#x7684;&#x4E66;&#x7C4D;&#xFF1A;</p>
<blockquote>
<p>C++&#x7F16;&#x7801;&#x89C4;&#x8303;&#xFF0C;&#x9648;&#x4E16;&#x5FE0;&#xFF0C;&#x4EBA;&#x6C11;&#x90AE;&#x7535;&#x51FA;&#x7248;&#x793E;&#xFF0C;2002<br>
&#x9AD8;&#x8D28;&#x91CF;&#x7A0B;&#x5E8F;&#x8BBE;&#x8BA1;&#x6307;&#x5357;&#xFF1A;C++/C&#x8BED;&#x8A00;&#xFF0C;&#x6797;&#x9510;&#x7B49;&#xFF0C;&#x7535;&#x5B50;&#x5DE5;&#x4E1A;&#x51FA;&#x7248;&#x793E;&#xFF0C;2003</p>
</blockquote>
<p><strong>&#x6CE8;&#xFF1A;</strong> &#x4EE5;&#x4E0B;&#x53EA;&#x662F;&#x6839;&#x636E;&#x8BFE;&#x9898;&#x7EC4;&#x5DF2;&#x6709;&#x7684;&#x7ECF;&#x9A8C;&#x7ED9;&#x51FA;&#x7684;&#x603B;&#x7ED3;&#xFF0C;&#x5E76;&#x975E;&#x5BF9;&#x6240;&#x6709;&#x573A;&#x666F;&#x5747;&#x9002;&#x7528;&#x3002;</p>
<h2 class="mume-header" id="%E4%B8%80-%E6%96%87%E4%BB%B6%E6%8E%92%E7%89%88%E6%96%B9%E9%9D%A2">&#x4E00;&#x3001;&#x6587;&#x4EF6;&#x6392;&#x7248;&#x65B9;&#x9762;</h2>

<h3 class="mume-header" id="1%E5%8C%85%E5%90%AB%E5%A4%B4%E6%96%87%E4%BB%B6">1.&#x5305;&#x542B;&#x5934;&#x6587;&#x4EF6;</h3>

<p>1.1 &#x5148;&#x7CFB;&#x7EDF;&#x5934;&#x6587;&#x4EF6;&#xFF0C;&#x540E;&#x7528;&#x6237;&#x5934;&#x6587;&#x4EF6;&#x3002;<br>
1.2 &#x7CFB;&#x7EDF;&#x5934;&#x6587;&#x4EF6;&#xFF0C;&#x7A33;&#x5B9A;&#x7684;&#x76EE;&#x5F55;&#x7ED3;&#x6784;&#xFF0C;&#x5E94;&#x91C7;&#x7528;&#x5305;&#x542B;&#x5B50;&#x8DEF;&#x5F84;&#x65B9;&#x5F0F;&#x3002;<br>
1.3 &#x81EA;&#x5B9A;&#x4E49;&#x5934;&#x6587;&#x4EF6;&#xFF0C;&#x4E0D;&#x7A33;&#x5B9A;&#x76EE;&#x5F55;&#x7ED3;&#x6784;&#xFF0C;&#x5E94;&#x5728;dsp&#x4E2D;&#x6307;&#x5B9A;&#x5305;&#x542B;&#x8DEF;&#x5F84;&#x3002;<br>
1.4 &#x7CFB;&#x7EDF;&#x5934;&#x6587;&#x4EF6;&#x5E94;&#x7528;&#xFF1A;#include &lt;xxx.h&gt;<br>
1.5 &#x81EA;&#x5B9A;&#x4E49;&#x540C;&#x6587;&#x4EF6;&#x5E94;&#x7528;&#xFF1A;#include &quot;xxx.h&quot;<br>
1.6 &#x53EA;&#x5F15;&#x7528;&#x9700;&#x8981;&#x7684;&#x5934;&#x6587;&#x4EF6;&#x3002;</p>
<h3 class="mume-header" id="2h%E5%92%8Ccpp%E6%96%87%E4%BB%B6">2.h&#x548C;cpp&#x6587;&#x4EF6;</h3>

<p>2.1 &#x5934;&#x6587;&#x4EF6;&#x547D;&#x540D;&#x4E3A;*.h&#xFF0C;&#x5185;&#x8054;&#x6587;&#x4EF6;&#x547D;&#x540D;&#x4E3A;*.inl&#xFF1B;C++&#x6587;&#x4EF6;&#x547D;&#x540D;&#x4E3A;*.cpp<br>
2.2 &#x6587;&#x4EF6;&#x540D;&#x7528;&#x5927;&#x5C0F;&#x5199;&#x6DF7;&#x5408;&#xFF0C;&#x6216;&#x8005;&#x5C0F;&#x5199;&#x6DF7;&#x5408;&#x3002;&#x4F8B;&#x5982;DiyMainview.cpp&#xFF0C;infoview.cpp&#x3002;&#x4E0D;&#x8981;&#x7528;&#x65E0;&#x610F;&#x4E49;&#x7684;&#x540D;&#x79F0;&#xFF1A;&#x4F8B;&#x5982;XImage.cpp&#xFF1B;SView.cpp&#xFF1B;xlog.cpp&#xFF1B;<br>
2.3 &#x5934;&#x6587;&#x4EF6;&#x9664;&#x4E86;&#x7279;&#x6B8A;&#x60C5;&#x51B5;&#xFF0C;&#x5E94;&#x4F7F;&#x7528;#ifdef&#x63A7;&#x5236;&#x5757;&#x3002;<br>
2.4 &#x5934;&#x6587;&#x4EF6;#endif&#x5E94;&#x91C7;&#x7528;&#x884C;&#x5C3E;&#x6CE8;&#x91CA;&#x3002;<br>
2.5 &#x5934;&#x6587;&#x4EF6;&#xFF0C;&#x9996;&#x5148;&#x662F;&#x5305;&#x542B;&#x4EE3;&#x7801;&#x5757;&#xFF0C;&#x5176;&#x6B21;&#x662F;&#x5B8F;&#x5B9A;&#x4E49;&#x4EE3;&#x7801;&#x5757;&#xFF0C;&#x7136;&#x540E;&#x662F;&#x5168;&#x5C40;&#x53D8;&#x91CF;&#xFF0C;&#x5168;&#x5C40;&#x5E38;&#x91CF;&#xFF0C;&#x7C7B;&#x578B;&#x5B9A;&#x4E49;&#xFF0C;&#x7C7B;&#x5B9A;&#x4E49;&#xFF0C;&#x5185;&#x8054;&#x90E8;&#x5206;&#x3002;<br>
2.6 CPP&#x6587;&#x4EF6;&#xFF0C;&#x5305;&#x542B;&#x6307;&#x4EE4;&#xFF0C;&#x5B8F;&#x5B9A;&#x4E49;&#xFF0C;&#x5168;&#x5C40;&#x53D8;&#x91CF;&#xFF0C;&#x51FD;&#x6570;&#x5B9A;&#x4E49;&#x3002;</p>
<h3 class="mume-header" id="3%E6%96%87%E4%BB%B6%E7%BB%93%E6%9E%84">3.&#x6587;&#x4EF6;&#x7ED3;&#x6784;</h3>

<p>3.1 &#x6587;&#x4EF6;&#x5E94;&#x5305;&#x542B;&#x6587;&#x4EF6;&#x5934;&#x6CE8;&#x91CA;&#x548C;&#x5185;&#x5BB9;&#x3002;<br>
3.2 &#x51FD;&#x6570;&#x4F53;&#x7C7B;&#x4F53;&#x4E4B;&#x95F4;&#x539F;&#x5219;&#x4E0A;&#x7528;2&#x4E2A;&#x7A7A;&#x884C;&#xFF0C;&#x7279;&#x6B8A;&#x60C5;&#x51B5;&#x4E0B;&#x53EF;&#x7528;&#x4E00;&#x4E2A;&#x6216;&#x8005;&#x4E0D;&#x9700;&#x8981;&#x7A7A;&#x884C;&#x3002;</p>
<h3 class="mume-header" id="4%E7%A9%BA%E8%A1%8C">4.&#x7A7A;&#x884C;</h3>

<p>4.1 &#x6587;&#x4EF6;&#x5934;&#x3001;&#x63A7;&#x5236;&#x5757;&#xFF0C;#include&#x90E8;&#x5206;&#x3001;&#x5B8F;&#x5B9A;&#x4E49;&#x90E8;&#x5206;&#x3001;class&#x90E8;&#x5206;&#x3001;&#x5168;&#x5C40;&#x5E38;&#x91CF;&#x90E8;&#x5206;&#x3001;&#x5168;&#x5C40;&#x53D8;&#x91CF;&#x90E8;&#x5206;&#x3001;&#x51FD;&#x6570;&#x548C;&#x51FD;&#x6570;&#x4E4B;&#x95F4;&#xFF0C;&#x7528;&#x4E24;&#x4E2A;&#x7A7A;&#x884C;&#x3002;</p>
<h2 class="mume-header" id="%E4%BA%8C-%E6%B3%A8%E9%87%8A%E6%96%B9%E9%9D%A2">&#x4E8C;&#x3001;&#x6CE8;&#x91CA;&#x65B9;&#x9762;</h2>

<h3 class="mume-header" id="1%E6%96%87%E4%BB%B6%E5%A4%B4%E6%B3%A8%E9%87%8A">1.&#x6587;&#x4EF6;&#x5934;&#x6CE8;&#x91CA;</h3>

<p>1.1 &#x4F5C;&#x8005;&#xFF0C;&#x6587;&#x4EF6;&#x540D;&#x79F0;&#xFF0C;&#x6587;&#x4EF6;&#x8BF4;&#x660E;&#xFF0C;&#x751F;&#x6210;&#x65E5;&#x671F;(&#x53EF;&#x9009;)</p>
<h3 class="mume-header" id="2%E5%87%BD%E6%95%B0%E6%B3%A8%E9%87%8A">2.&#x51FD;&#x6570;&#x6CE8;&#x91CA;</h3>

<p>2.1 &#x5173;&#x952E;&#x51FD;&#x6570;&#x5FC5;&#x987B;&#x5199;&#x4E0A;&#x6CE8;&#x91CA;&#xFF0C;&#x8BF4;&#x660E;&#x51FD;&#x6570;&#x7684;&#x7528;&#x9014;&#x3002;<br>
2.2 &#x7279;&#x522B;&#x51FD;&#x6570;&#x53C2;&#x6570;&#xFF0C;&#x9700;&#x8981;&#x8BF4;&#x660E;&#x53C2;&#x6570;&#x7684;&#x76EE;&#x7684;&#xFF0C;&#x7531;&#x8C01;&#x8D1F;&#x8D23;&#x91CA;&#x653E;&#x7B49;&#x7B49;&#x3002;<br>
2.3 &#x9664;&#x4E86;&#x7279;&#x522B;&#x60C5;&#x51B5;&#xFF0C;&#x6CE8;&#x91CA;&#x5199;&#x5728;&#x4EE3;&#x7801;&#x4E4B;&#x524D;&#xFF0C;&#x4E0D;&#x8981;&#x653E;&#x5230;&#x4EE3;&#x7801;&#x884C;&#x4E4B;&#x540E;&#x3002;<br>
2.4 &#x5BF9;&#x6BCF;&#x4E2A;#else&#x6216;#endif&#x7ED9;&#x51FA;&#x884C;&#x672B;&#x6CE8;&#x91CA;&#x3002;<br>
2.5 &#x5173;&#x952E;&#x4EE3;&#x7801;&#x6CE8;&#x91CA;&#xFF0C;&#x5305;&#x62EC;&#x4F46;&#x4E0D;&#x9650;&#x4E8E;&#xFF1A;&#x8D4B;&#x503C;&#xFF0C;&#x51FD;&#x6570;&#x8C03;&#x7528;&#xFF0C;&#x8868;&#x8FBE;&#x5F0F;&#xFF0C;&#x5206;&#x652F;&#x7B49;&#x7B49;&#x3002;<br>
2.6 &#x5584;&#x672A;&#x5B9E;&#x73B0;&#x5B8C;&#x6574;&#x7684;&#x4EE3;&#x7801;&#xFF0C;&#x6216;&#x8005;&#x9700;&#x8981;&#x8FDB;&#x4E00;&#x6B65;&#x4F18;&#x5316;&#x7684;&#x4EE3;&#x7801;&#xFF0C;&#x5E94;&#x52A0;&#x4E0A; // TODO ...<br>
2.7 &#x8C03;&#x8BD5;&#x7684;&#x4EE3;&#x7801;&#xFF0C;&#x52A0;&#x4E0A;&#x6CE8;&#x91CA; // only for DEBUG<br>
2.8 &#x9700;&#x8981;&#x5F15;&#x8D77;&#x5173;&#x6CE8;&#x7684;&#x4EE3;&#x7801;&#xFF0C;&#x52A0;&#x4E0A;&#x6CE8;&#x91CA; // NOTE ...<br>
2.9 &#x5BF9;&#x4E8E;&#x8F83;&#x5927;&#x7684;&#x4EE3;&#x7801;&#x5757;&#x7ED3;&#x5C3E;&#xFF0C;&#x5982;for,while,do&#x7B49;&#xFF0C;&#x53EF;&#x52A0;&#x4E0A; // end for|while|do</p>
<h2 class="mume-header" id="%E4%B8%89-%E5%91%BD%E5%90%8D%E6%96%B9%E9%9D%A2">&#x4E09;&#x3001;&#x547D;&#x540D;&#x65B9;&#x9762;</h2>

<h3 class="mume-header" id="1%E5%8E%9F%E5%88%99">1.&#x539F;&#x5219;</h3>

<p>1.1 &#x540C;&#x4E00;&#x6027;&#xFF1A;&#x5728;&#x7F16;&#x5199;&#x4E00;&#x4E2A;&#x5B50;&#x6A21;&#x5757;&#x6216;&#x6D3E;&#x751F;&#x7C7B;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x8981;&#x9075;&#x5FAA;&#x5176;&#x57FA;&#x7C7B;&#x6216;&#x6574;&#x4F53;&#x6A21;&#x5757;&#x7684;&#x547D;&#x540D;&#x98CE;&#x683C;&#xFF0C;&#x4FDD;&#x6301;&#x547D;&#x540D;&#x98CE;&#x683C;&#x5728;&#x6574;&#x4E2A;&#x6A21;&#x5757;&#x4E2D;&#x7684;&#x540C;&#x4E00;&#x6027;&#x3002;<br>
1.2 &#x6807;&#x8BC6;&#x7B26;&#x7EC4;&#x6210;&#xFF1A;&#x6807;&#x8BC6;&#x7B26;&#x91C7;&#x7528;&#x82F1;&#x6587;&#x5355;&#x8BCD;&#x6216;&#x5176;&#x7EC4;&#x5408;&#xFF0C;&#x5E94;&#x5F53;&#x76F4;&#x89C2;&#x4E14;&#x53EF;&#x4EE5;&#x62FC;&#x8BFB;&#xFF0C;&#x53EF;&#x671B;&#x6587;&#x77E5;&#x610F;&#xFF0C;&#x7528;&#x8BCD;&#x5E94;&#x5F53;&#x51C6;&#x786E;&#xFF0C;&#x907F;&#x514D;&#x7528;&#x62FC;&#x97F3;&#x547D;&#x540D;&#x3002;<br>
1.3 &#x6700;&#x5C0F;&#x5316;&#x957F;&#x5EA6; &amp;&amp; &#x6700;&#x5927;&#x5316;&#x4FE1;&#x606F;&#x91CF;&#x539F;&#x5219;&#xFF1A;&#x5728;&#x4FDD;&#x6301;&#x4E00;&#x4E2A;&#x6807;&#x8BC6;&#x7B26;&#x610F;&#x601D;&#x660E;&#x786E;&#x7684;&#x540C;&#x65F6;&#xFF0C;&#x5E94;&#x5F53;&#x5C3D;&#x91CF;&#x7F29;&#x77ED;&#x5176;&#x957F;&#x5EA6;&#x3002;<br>
1.4 &#x907F;&#x514D;&#x8FC7;&#x4E8E;&#x76F8;&#x4F3C;&#xFF1A;&#x4E0D;&#x8981;&#x51FA;&#x73B0;&#x4EC5;&#x9760;&#x5927;&#x5C0F;&#x5199;&#x533A;&#x5206;&#x7684;&#x76F8;&#x4F3C;&#x7684;&#x6807;&#x8BC6;&#x7B26;&#xFF0C;&#x4F8B;&#x5982;&quot;i&quot;&#x4E0E;&quot;I&quot;&#xFF0C;&quot;function&quot;&#x4E0E;&quot;Function&quot;&#x7B49;&#x7B49;&#x3002;<br>
1.5 &#x907F;&#x514D;&#x5728;&#x4E0D;&#x540C;&#x7EA7;&#x522B;&#x7684;&#x4F5C;&#x7528;&#x57DF;&#x4E2D;&#x91CD;&#x540D;&#xFF1A;&#x7A0B;&#x5E8F;&#x4E2D;&#x4E0D;&#x8981;&#x51FA;&#x73B0;&#x540D;&#x5B57;&#x5B8C;&#x5168;&#x76F8;&#x540C;&#x7684;&#x5C40;&#x90E8;&#x53D8;&#x91CF;&#x548C;&#x5168;&#x5C40;&#x53D8;&#x91CF;&#xFF0C;&#x5C3D;&#x7BA1;&#x4E24;&#x8005;&#x7684;&#x4F5C;&#x7528;&#x57DF;&#x4E0D;&#x540C;&#x800C;&#x4E0D;&#x4F1A;&#x53D1;&#x751F;&#x8BED;&#x6CD5;&#x9519;&#x8BEF;&#xFF0C;&#x4F46;&#x5BB9;&#x6613;&#x4F7F;&#x4EBA;&#x8BEF;&#x89E3;&#x3002;<br>
1.6 &#x6B63;&#x786E;&#x547D;&#x540D;&#x5177;&#x6709;&#x4E92;&#x65A5;&#x610F;&#x4E49;&#x7684;&#x6807;&#x8BC6;&#x7B26;&#xFF1A;&#x7528;&#x6B63;&#x786E;&#x7684;&#x53CD;&#x4E49;&#x8BCD;&#x7EC4;&#x547D;&#x540D;&#x5177;&#x6709;&#x4E92;&#x65A5;&#x610F;&#x4E49;&#x7684;&#x6807;&#x8BC6;&#x7B26;&#xFF0C;&#x5982;&#xFF1A;&quot;nMinValue&quot; &#x548C; &quot;nMaxValue&quot;&#xFF0C;&quot;GetName()&quot; &#x548C;&quot;SetName()&quot; &#x2026;.<br>
1.7 &#x907F;&#x514D;&#x540D;&#x5B57;&#x4E2D;&#x51FA;&#x73B0;&#x6570;&#x5B57;&#x7F16;&#x53F7;&#xFF1A;&#x5C3D;&#x91CF;&#x907F;&#x514D;&#x540D;&#x5B57;&#x4E2D;&#x51FA;&#x73B0;&#x6570;&#x5B57;&#x7F16;&#x53F7;&#xFF0C;&#x5982;Value1,Value2&#x7B49;&#xFF0C;&#x9664;&#x975E;&#x903B;&#x8F91;&#x4E0A;&#x7684;&#x786E;&#x9700;&#x8981;&#x7F16;&#x53F7;&#x3002;&#x8FD9;&#x662F;&#x4E3A;&#x4E86;&#x9632;&#x6B62;&#x7A0B;&#x5E8F;&#x5458;&#x5077;&#x61D2;&#xFF0C;&#x4E0D;&#x80AF;&#x4E3A;&#x547D;&#x540D;&#x52A8;&#x8111;&#x7B4B;&#x800C;&#x5BFC;&#x81F4;&#x4EA7;&#x751F;&#x65E0;&#x610F;&#x4E49;&#x7684;&#x540D;&#x5B57;&#xFF08;&#x56E0;&#x4E3A;&#x7528;&#x6570;&#x5B57;&#x7F16;&#x53F7;&#x6700;&#x7701;&#x4E8B;&#xFF09;&#x3002;</p>
<h3 class="mume-header" id="2tcmr%E7%B1%BB">2.T,C,M,R&#x7C7B;</h3>

<p>2.1 T&#x7C7B;&#x8868;&#x793A;&#x7B80;&#x5355;&#x6570;&#x636E;&#x7C7B;&#x578B;&#xFF0C;&#x4E0D;&#x5BF9;&#x8D44;&#x6E90;&#x62E5;&#x6709;&#x63A7;&#x5236;&#x6743;&#xFF0C;&#x5728;&#x6790;&#x6784;&#x8FC7;&#x7A0B;&#x4E2D;&#x6CA1;&#x6709;&#x91CA;&#x653E;&#x8D44;&#x6E90;&#x52A8;&#x4F5C;&#x3002;<br>
2.2 C&#x8868;&#x793A;&#x4ECE;CBase&#x7EE7;&#x627F;&#x7684;&#x7C7B;&#x3002;&#x8BE5;&#x7C7B;&#x4E0D;&#x80FD;&#x4ECE;&#x6808;&#x4E0A;&#x5B9A;&#x4E49;&#x53D8;&#x91CF;&#xFF0C;&#x53EA;&#x80FD;&#x4ECE;&#x5806;&#x4E0A;&#x521B;&#x5EFA;&#x3002;<br>
2.3 M&#x8868;&#x793A;&#x63A5;&#x53E3;&#x7C7B;&#x3002;<br>
2.4 R&#x662F;&#x8D44;&#x6E90;&#x7C7B;&#xFF0C;&#x901A;&#x5E38;&#x662F;&#x7CFB;&#x7EDF;&#x56FA;&#x6709;&#x7C7B;&#x578B;&#x3002;&#x9664;&#x4E86;&#x7279;&#x6B8A;&#x60C5;&#x51B5;&#xFF0C;&#x4E0D;&#x5E94;&#x5728;&#x5F00;&#x53D1;&#x4EE3;&#x7801;&#x4E2D;&#x51FA;&#x73B0;R&#x7C7B;&#x578B;&#x3002;</p>
<h3 class="mume-header" id="3%E5%87%BD%E6%95%B0%E5%90%8D">3.&#x51FD;&#x6570;&#x540D;</h3>

<p>3.1 M&#x7C7B;&#x7684;&#x51FD;&#x6570;&#x540D;&#x79F0;&#x5E94;&#x91C7;&#x7528;HandleXXX&#x547D;&#x540D;&#xFF0C;&#x4F8B;&#x5982;&#xFF1A;HandleTimerEvent&#xFF1B;&#x4E0D;&#x63A8;&#x8350;&#x91C7;&#x7528;java&#x98CE;&#x683C;&#xFF0C;&#x4F8B;&#x5982; handleTimerEvent&#xFF1B;&#x9664;&#x4E86;&#x6807;&#x51C6;c&#x98CE;&#x683C;&#x4EE3;&#x7801;&#xFF0C;&#x4E0D;&#x63A8;&#x8350;&#x7528;&#x4E0B;&#x5212;&#x7EBF;&#xFF0C;&#x4F8B;&#x5982;&#xFF0C;handle_event&#x3002;<br>
3.2 Leave&#x51FD;&#x6570;&#xFF0C;&#x7528;&#x540E;&#x7F00;L&#x3002;<br>
3.3 Leave&#x51FD;&#x6570;&#xFF0C;&#x4E14;&#x8FDB;&#x6E05;&#x9664;&#x6808;&#xFF0C;&#x7528;&#x540E;&#x7F00;LC&#x3002;<br>
3.4 Leave&#x51FD;&#x6570;&#xFF0C;&#x4E14;&#x5220;&#x9664;&#x5BF9;&#x8C61;&#xFF0C;&#x7528;&#x540E;&#x7F00;LD&#x3002;</p>
<h3 class="mume-header" id="4%E5%87%BD%E6%95%B0%E5%8F%82%E6%95%B0">4.&#x51FD;&#x6570;&#x53C2;&#x6570;</h3>

<p>4.1 &#x51FD;&#x6570;&#x53C2;&#x6570;&#x7528;a&#x4F5C;&#x4E3A;&#x524D;&#x7F00;&#x3002;<br>
4.2 &#x907F;&#x514D;&#x51FA;&#x73B0;&#x548C;&#x5308;&#x7259;&#x5229;&#x6DF7;&#x5408;&#x7684;&#x547D;&#x540D;&#x89C4;&#x5219;&#x5982;apBuffer&#x540D;&#x79F0;&#x3002;&#x7528;aBuffer&#x5373;&#x53EF;&#x3002;<br>
4.3 &#x51FD;&#x6570;&#x53C2;&#x6570;&#x6BD4;&#x8F83;&#x591A;&#x65F6;&#xFF0C;&#x5E94;&#x8003;&#x8651;&#x7528;&#x7ED3;&#x6784;&#x4EE3;&#x66FF;&#x3002;<br>
4.4 &#x5982;&#x679C;&#x4E0D;&#x80FD;&#x907F;&#x514D;&#x51FD;&#x6570;&#x53C2;&#x6570;&#x6BD4;&#x8F83;&#x591A;&#xFF0C;&#x5E94;&#x5728;&#x6392;&#x7248;&#x4E0A;&#x53EF;&#x8003;&#x8651;&#x6BCF;&#x4E2A;&#x53C2;&#x6570;&#x5360;&#x7528;&#x4E00;&#x884C;&#xFF0C;&#x53C2;&#x6570;&#x540D;&#x7AD6;&#x5411;&#x5BF9;&#x9F50;&#x3002;</p>
<h3 class="mume-header" id="5%E6%88%90%E5%91%98%E5%8F%98%E9%87%8F">5.&#x6210;&#x5458;&#x53D8;&#x91CF;</h3>

<p>5.1 &#x6210;&#x5458;&#x53D8;&#x91CF;&#x7528;m&#x6700;&#x4E3A;&#x524D;&#x7F00;&#x3002;<br>
5.2 &#x907F;&#x514D;&#x51FA;&#x73B0;&#x548C;&#x5308;&#x7259;&#x5229;&#x6DF7;&#x5408;&#x7684;&#x547D;&#x540D;&#x89C4;&#x5219;&#x5982;mpBuffer&#x540D;&#x79F0;&#x3002;&#x7528;mBuffer&#x5373;&#x53EF;&#x3002;</p>
<h3 class="mume-header" id="6%E5%B1%80%E9%83%A8%E5%8F%98%E9%87%8F">6.&#x5C40;&#x90E8;&#x53D8;&#x91CF;</h3>

<p>6.1 &#x5FAA;&#x73AF;&#x53D8;&#x91CF;&#x548C;&#x7B80;&#x5355;&#x53D8;&#x91CF;&#x91C7;&#x7528;&#x7B80;&#x5355;&#x5C0F;&#x5199;&#x5B57;&#x7B26;&#x4E32;&#x5373;&#x53EF;&#x3002;&#x4F8B;&#x5982;&#xFF0C;int i;<br>
6.2 &#x6307;&#x9488;&#x53D8;&#x91CF;&#x7528;p&#x6253;&#x5934;&#xFF0C;&#x4F8B;&#x5982;void* pBuffer;</p>
<h3 class="mume-header" id="7%E5%85%A8%E5%B1%80%E5%8F%98%E9%87%8F">7.&#x5168;&#x5C40;&#x53D8;&#x91CF;</h3>

<p>7.1 &#x5168;&#x5C40;&#x53D8;&#x91CF;&#x7528;g_&#x6700;&#x4E3A;&#x524D;&#x7F00;&#x3002;</p>
<h3 class="mume-header" id="8%E7%B1%BB%E5%90%8D">8.&#x7C7B;&#x540D;</h3>

<p>8.1 &#x7C7B;&#x548C;&#x5BF9;&#x8C61;&#x540D;&#x5E94;&#x662F;&#x540D;&#x8BCD;&#x3002;<br>
8.2 &#x5B9E;&#x73B0;&#x884C;&#x4E3A;&#x7684;&#x7C7B;&#x6210;&#x5458;&#x51FD;&#x6570;&#x540D;&#x5E94;&#x662F;&#x52A8;&#x8BCD;&#x3002;<br>
8.3 &#x7C7B;&#x7684;&#x5B58;&#x53D6;&#x548C;&#x67E5;&#x8BE2;&#x6210;&#x5458;&#x51FD;&#x6570;&#x540D;&#x5E94;&#x662F;&#x540D;&#x8BCD;&#x6216;&#x5F62;&#x5BB9;&#x8BCD;&#x3002;</p>
<h3 class="mume-header" id="9%E9%A3%8E%E6%A0%BC%E5%85%BC%E5%AE%B9%E6%80%A7">9.&#x98CE;&#x683C;&#x517C;&#x5BB9;&#x6027;</h3>

<p>9.1 &#x5BF9;&#x4E8E;&#x79FB;&#x690D;&#x7684;&#x6216;&#x8005;&#x5F00;&#x6E90;&#x7684;&#x4EE3;&#x7801;&#xFF0C;&#x53EF;&#x4EE5;&#x6CBF;&#x7528;&#x539F;&#x6709;&#x98CE;&#x683C;&#xFF0C;&#x4E0D;&#x7528;C++&#x7684;&#x547D;&#x540D;&#x89C4;&#x8303;&#x3002;</p>
<h2 class="mume-header" id="%E5%9B%9B-%E4%BB%A3%E7%A0%81%E9%A3%8E%E6%A0%BC%E6%96%B9%E9%9D%A2">&#x56DB;&#x3001;&#x4EE3;&#x7801;&#x98CE;&#x683C;&#x65B9;&#x9762;</h2>

<h3 class="mume-header" id="1tab%E5%92%8C%E7%A9%BA%E6%A0%BC">1.Tab&#x548C;&#x7A7A;&#x683C;</h3>

<p>1.1 &#x6BCF;&#x4E00;&#x884C;&#x5F00;&#x59CB;&#x5904;&#x7684;&#x7F29;&#x8FDB;&#x53EA;&#x80FD;&#x7528;Tab&#xFF0C;&#x4E0D;&#x80FD;&#x7528;&#x7A7A;&#x683C;&#xFF0C;&#x8F93;&#x5165;&#x5185;&#x5BB9;&#x4E4B;&#x540E;&#x7EDF;&#x4E00;&#x7528;&#x7A7A;&#x683C;&#x3002;&#x9664;&#x4E86;&#x6700;&#x5F00;&#x59CB;&#x7684;&#x7F29;&#x8FDB;&#x63A7;&#x5236;&#x7528;Tab&#xFF0C;&#x5176;&#x4ED6;&#x90E8;&#x5206;&#x4E3A;&#x4E86;&#x5BF9;&#x9F50;&#xFF0C;&#x9700;&#x8981;&#x4F7F;&#x7528;&#x7A7A;&#x683C;&#x8FDB;&#x884C;&#x7F29;&#x8FDB;&#x3002;&#x8FD9;&#x6837;&#x53EF;&#x4EE5;&#x907F;&#x514D;&#x5728;&#x4E0D;&#x540C;&#x7684;&#x7F16;&#x8F91;&#x5668;&#x4E0B;&#x663E;&#x793A;&#x4E0D;&#x5BF9;&#x9F50;&#x7684;&#x60C5;&#x51B5;&#x3002;<br>
1.2 &#x5728;&#x4EE3;&#x7801;&#x884C;&#x7684;&#x7ED3;&#x5C3E;&#x90E8;&#x5206;&#x4E0D;&#x80FD;&#x51FA;&#x73B0;&#x591A;&#x4F59;&#x7684;&#x7A7A;&#x683C;&#x3002;<br>
1.3 &#x4E0D;&#x8981;&#x5728;&quot;::&quot;,&quot;-&gt;&quot;,&quot;.&quot;&#x524D;&#x540E;&#x52A0;&#x7A7A;&#x683C;&#x3002;<br>
1.4 &#x4E0D;&#x8981;&#x5728;&quot;&#xFF0C;&quot;,&quot;&#xFF1B;&quot;&#x4E4B;&#x524D;&#x52A0;&#x7A7A;&#x683C;&#x3002;</p>
<h3 class="mume-header" id="2%E7%B1%BB%E5%9E%8B%E5%AE%9A%E4%B9%89%E5%92%8C">2.&#x7C7B;&#x578B;&#x5B9A;&#x4E49;&#x548C;{</h3>

<p>2.1 &#x7C7B;&#xFF0C;&#x7ED3;&#x6784;&#xFF0C;&#x679A;&#x4E3E;&#xFF0C;&#x8054;&#x5408;&#xFF1A;&#x5927;&#x62EC;&#x53F7;&#x53E6;&#x8D77;&#x4E00;&#x884C;</p>
<h3 class="mume-header" id="3%E5%87%BD%E6%95%B0">3.&#x51FD;&#x6570;</h3>

<p>3.1 &#x51FD;&#x6570;&#x4F53;&#x7684;{&#x9700;&#x8981;&#x65B0;&#x8D77;&#x4E00;&#x884C;&#xFF0C;&#x5728;{&#x4E4B;&#x524D;&#x4E0D;&#x80FD;&#x6709;&#x7F29;&#x8FDB;&#x3002;<br>
3.2 &#x9664;&#x4E86;&#x7279;&#x522B;&#x60C5;&#x51B5;&#xFF0C;&#x51FD;&#x6570;&#x4F53;&#x5185;&#x4E0D;&#x80FD;&#x51FA;&#x73B0;&#x4E24;&#x4E2A;&#x7A7A;&#x884C;&#x3002;<br>
3.3 &#x9664;&#x4E86;&#x7279;&#x522B;&#x60C5;&#x51B5;&#xFF0C;&#x51FD;&#x6570;&#x4F53;&#x5185;&#x4E0D;&#x80FD;&#x5B8F;&#x5B9A;&#x4E49;&#x6307;&#x4EE4;&#x3002;<br>
3.4 &#x5728;&#x4E00;&#x4E2A;&#x51FD;&#x6570;&#x4F53;&#x5185;&#xFF0C;&#x903B;&#x63D6;&#x4E0A;&#x5BC6;&#x5207;&#x76F8;&#x5173;&#x7684;&#x8BED;&#x53E5;&#x4E4B;&#x95F4;&#x4E0D;&#x52A0;&#x7A7A;&#x884C;&#xFF0C;&#x5176;&#x5B83;&#x5730;&#x65B9;&#x5E94;&#x52A0;&#x7A7A;&#x884C;&#x5206;&#x9694;&#x3002;<br>
3.5 &#x5728;&#x5934;&#x6587;&#x4EF6;&#x5B9A;&#x4E49;&#x7684;inline&#x51FD;&#x6570;&#xFF0C;&#x51FD;&#x6570;&#x4E4B;&#x95F4;&#x53EF;&#x4EE5;&#x4E0D;&#x7528;&#x7A7A;&#x884C;&#xFF0C;&#x63A8;&#x8350;&#x7528;&#x4E00;&#x4E2A;&#x7A7A;&#x884C;&#x3002;</p>
<h3 class="mume-header" id="4%E4%BB%A3%E7%A0%81%E5%9D%97">4.&#x4EE3;&#x7801;&#x5757;</h3>

<p>4.1 &quot;if&quot;&#x3001;&quot;for&quot;&#x3001;&quot;while&quot;&#x3001;&quot;do&quot;&#x3001;&quot;try&quot;&#x3001;&quot;catch&quot; &#x7B49;&#x8BED;&#x53E5;&#x81EA;&#x5360;&#x4E00;&#x884C;&#xFF0C;&#x6267;&#x884C;&#x8BED;&#x53E5;&#x4E0D;&#x5F97;&#x7D27;&#x8DDF;&#x5176;&#x540E;&#x3002;&#x4E0D;&#x8BBA;&#x6267;&#x884C;&#x8BED;&#x53E5;&#x6709;&#x591A;&#x5C11;&#x90FD;&#x8981;&#x52A0; &quot;{ }&quot; &#x3002;&#x8FD9;&#x6837;&#x53EF;&#x4EE5;&#x9632;&#x6B62;&#x4E66;&#x5199;&#x548C;&#x4FEE;&#x6539;&#x4EE3;&#x7801;&#x65F6;&#x51FA;&#x73B0;&#x5931;&#x8BEF;&#x3002;<br>
4.2 &quot;if&quot;&#x3001;&quot;for&quot;&#x3001;&quot;while&quot;&#x3001;&quot;do&quot;&#x3001;&quot;try&quot;&#x3001;&quot;catch&quot; &#x7684;&#x62EC;&#x53F7;&#x548C;&#x8868;&#x8FBE;&#x5F0F;&#xFF0C;&#x62EC;&#x53F7;&#x53EF;&#x7D27;&#x6328;&#x5173;&#x952E;&#x5B57;&#xFF0C;&#x8FD9;&#x6837;&#x5F3A;&#x8C03;&#x7684;&#x662F;&#x8868;&#x8FBE;&#x5F0F;&#x3002;</p>
<h3 class="mume-header" id="5else">5.else</h3>

<p>5.1 if&#x8BED;&#x53E5;&#x5982;&#x679C;&#x6709;else&#x8BED;&#x53E5;&#xFF0C;&#x7528; else {} &#x7F16;&#x5199;&#x4E3A;&#x4E00;&#x884C;&#xFF0C;&#x4E0D;&#x63A8;&#x8350;&#x7528; 3 &#x884C;&#x4EE3;&#x7801;&#x7684;&#x65B9;&#x5F0F;&#x3002;</p>
<h3 class="mume-header" id="6%E4%BB%A3%E7%A0%81%E8%A1%8C">6.&#x4EE3;&#x7801;&#x884C;</h3>

<p>6.1 &#x4E00;&#x884C;&#x4EE3;&#x7801;&#x53EA;&#x505A;&#x4E00;&#x4EF6;&#x4E8B;&#x60C5;&#xFF0C;&#x5982;&#x53EA;&#x5B9A;&#x4E49;&#x4E00;&#x4E2A;&#x53D8;&#x91CF;&#xFF0C;&#x6216;&#x53EA;&#x5199;&#x4E00;&#x6761;&#x8BED;&#x53E5;&#x3002;&#x8FD9;&#x6837;&#x7684;&#x4EE3;&#x7801;&#x5BB9;&#x6613;&#x9605;&#x8BFB;&#xFF0C;&#x5E76;&#x4E14;&#x65B9;&#x4FBF;&#x4E8E;&#x5199;&#x6CE8;&#x91CA;&#x3002;<br>
6.2 &#x591A;&#x884C;&#x53D8;&#x91CF;&#x5B9A;&#x4E49;&#xFF0C;&#x4E3A;&#x4E86;&#x8FFD;&#x6C42;&#x4EE3;&#x7801;&#x6392;&#x7248;&#x7F8E;&#x89C2;&#xFF0C;&#x53EF;&#x5C06;&#x53D8;&#x91CF;&#x7AD6;&#x5411;&#x5BF9;&#x9F50;&#x3002;<br>
6.3 &#x4EE3;&#x7801;&#x884C;&#x6700;&#x5927;&#x957F;&#x5EA6;&#x5B9C;&#x63A7;&#x5236;&#x5728;&#x4E00;&#x5B9A;&#x4E2A;&#x5B57;&#x7B26;&#x4EE5;&#x5185;&#xFF0C;&#x80FD;&#x5728;&#x5F53;&#x524D;&#x5C4F;&#x5E55;&#x5185;&#x5168;&#x90E8;&#x53EF;&#x89C1;&#x4E3A;&#x5B9C;&#x3002;</p>
<h3 class="mume-header" id="7switch%E8%AF%AD%E5%8F%A5">7.switch&#x8BED;&#x53E5;</h3>

<p>7.1 case&#x5173;&#x952E;&#x5B57;&#x5E94;&#x548C;switch&#x5BF9;&#x9F50;&#x3002;<br>
7.2 case&#x5B50;&#x8BED;&#x53E5;&#x5982;&#x679C;&#x6709;&#x53D8;&#x91CF;&#xFF0C;&#x5E94;&#x7528;{}&#x5305;&#x542B;&#x8D77;&#x6765;&#x3002;<br>
7.3 &#x5982;&#x679C;&#x6709;&#x5E76;&#x5217;&#x7684;&#x7C7B;&#x4F3C;&#x7684;&#x7B80;&#x5355;case&#x8BED;&#x53E5;&#xFF0C;&#x53EF;&#x8003;&#x8651;&#x5C06;case&#x4EE3;&#x7801;&#x5757;&#x5199;&#x4E3A;&#x4E00;&#x884C;&#x4EE3;&#x7801;&#x3002;<br>
7.4 &#x7B80;&#x5355;&#x7684;case&#x4E4B;&#x95F4;&#x53EF;&#x4E0D;&#x7528;&#x7A7A;&#x884C;&#xFF0C;&#x590D;&#x6742;&#x7684;case&#x4E4B;&#x95F4;&#x5E94;&#x8003;&#x8651;&#x7528;&#x7A7A;&#x884C;&#x5206;&#x5272;&#x5F00;&#x3002;<br>
7.5 case&#x5B57;&#x8BED;&#x53E5;&#x7684;&#x5927;&#x62EC;&#x53F7;&#x53E6;&#x8D77;&#x4E00;&#x884C;&#xFF0C;&#x4E0D;&#x8981;&#x548C;case&#x5199;&#x5230;&#x4E00;&#x884C;&#x3002;<br>
7.6 &#x4E3A;&#x6240;&#x6709;switch&#x8BED;&#x53E5;&#x63D0;&#x4F9B;default&#x5206;&#x652F;&#x3002;<br>
7.7 &#x82E5;&#x67D0;&#x4E2A;case&#x4E0D;&#x9700;&#x8981;break&#x4E00;&#x5B9A;&#x8981;&#x52A0;&#x6CE8;&#x91CA;&#x58F0;&#x660E;&#x3002;</p>
<h3 class="mume-header" id="8%E5%BE%AA%E7%8E%AF">8.&#x5FAA;&#x73AF;</h3>

<p>8.1 &#x7A7A;&#x5FAA;&#x73AF;&#x53EF;&#x7528; for( ;; ) &#x6216;&#x8005; while( 1 ) &#x6216;&#x8005; while( true )</p>
<h3 class="mume-header" id="9%E7%B1%BB">9.&#x7C7B;</h3>

<p>9.1 &#x7C7B;&#x7EE7;&#x627F;&#x5E94;&#x91C7;&#x7528;&#x6BCF;&#x4E2A;&#x57FA;&#x7C7B;&#x5360;&#x636E;&#x4E00;&#x884C;&#x7684;&#x65B9;&#x5F0F;&#x3002;<br>
9.2 &#x5355;&#x7EE7;&#x627F;&#x53EF;&#x5C06;&#x57FA;&#x7C7B;&#x653E;&#x5728;&#x7C7B;&#x5B9A;&#x4E49;&#x7684;&#x540C;&#x4E00;&#x884C;&#x3002;&#x5982;&#x679C;&#x7528;&#x591A;&#x884C;&#xFF0C;&#x5219;&#x5E94;&#x7528;Tab&#x7F29;&#x8FDB;&#x3002;<br>
9.3 &#x591A;&#x7EE7;&#x627F;&#x5728;&#x57FA;&#x7C7B;&#x6BD4;&#x8F83;&#x591A;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x5E94;&#x5C06;&#x57FA;&#x7C7B;&#x5206;&#x884C;&#xFF0C;&#x5E76;&#x91C7;&#x7528;Tab&#x7F29;&#x8FDB;&#x5BF9;&#x9F50;&#x3002;<br>
9.4 &#x91CD;&#x8F7D;&#x57FA;&#x7C7B;&#x865A;&#x51FD;&#x6570;&#xFF0C;&#x5E94;&#x5728;&#x8BE5;&#x7EC4;&#x865A;&#x51FD;&#x6570;&#x524D;&#x5199;&#x6CE8;&#x91CA; // implement XXX<br>
9.5 &#x53CB;&#x5143;&#x58F0;&#x660E;&#x653E;&#x5230;&#x7C7B;&#x7684;&#x672B;&#x5C3E;&#x3002;</p>
<h3 class="mume-header" id="10%E5%AE%8F">10.&#x5B8F;</h3>

<p>10.1 &#x4E0D;&#x8981;&#x7528;&#x5206;&#x53F7;&#x7ED3;&#x675F;&#x5B8F;&#x5B9A;&#x4E49;&#x3002;<br>
10.2 &#x51FD;&#x6570;&#x5B8F;&#x7684;&#x6BCF;&#x4E2A;&#x53C2;&#x6570;&#x90FD;&#x8981;&#x62EC;&#x8D77;&#x6765;&#x3002;<br>
10.3 &#x4E0D;&#x5E26;&#x53C2;&#x6570;&#x7684;&#x5B8F;&#x51FD;&#x6570;&#x4E5F;&#x8981;&#x5B9A;&#x4E49;&#x6210;&#x51FD;&#x6570;&#x5F62;&#x5F0F;&#x3002;</p>
<h3 class="mume-header" id="11goto">11.goto</h3>

<p>11.1 &#x5C3D;&#x91CF;&#x4E0D;&#x8981;&#x7528;goto&#x3002;</p>
<h2 class="mume-header" id="%E4%BA%94-%E7%B1%BB%E5%9E%8B">&#x4E94;&#x3001;&#x7C7B;&#x578B;</h2>

<p>5.1 &#x5B9A;&#x4E49;&#x6307;&#x9488;&#x548C;&#x5F15;&#x7528;&#x65F6;*&#x548C;&amp;&#x7D27;&#x8DDF;&#x7C7B;&#x578B;&#x3002;<br>
5.2 &#x5C3D;&#x91CF;&#x907F;&#x514D;&#x4F7F;&#x7528;&#x6D6E;&#x70B9;&#x6570;&#xFF0C;&#x9664;&#x975E;&#x5FC5;&#x987B;&#x3002;<br>
5.3 &#x7528;typedef&#x7B80;&#x5316;&#x7A0B;&#x5E8F;&#x4E2D;&#x7684;&#x590D;&#x6742;&#x8BED;&#x6CD5;&#x3002;<br>
5.4 &#x907F;&#x514D;&#x5B9A;&#x4E49;&#x65E0;&#x540D;&#x79F0;&#x7684;&#x7C7B;&#x578B;&#x3002;&#x4F8B;&#x5982;&#xFF1A;typedef enum { EIdle, EActive } TState;<br>
5.5 &#x5C11;&#x7528;union&#xFF0C;&#x5982;&#x679C;&#x4E00;&#x5B9A;&#x8981;&#x7528;&#xFF0C;&#x5219;&#x91C7;&#x7528;&#x7B80;&#x5355;&#x6570;&#x636E;&#x7C7B;&#x578B;&#x6210;&#x5458;&#x3002;<br>
5.6 &#x7528;enum&#x53D6;&#x4EE3;(&#x4E00;&#x7EC4;&#x76F8;&#x5173;&#x7684;)&#x5E38;&#x91CF;&#x3002;<br>
5.7 &#x4E0D;&#x8981;&#x4F7F;&#x7528;&#x9B54;&#x9B3C;&#x6570;&#x5B57;&#x3002;<br>
5.8 &#x5C3D;&#x91CF;&#x7528;&#x5F15;&#x7528;&#x53D6;&#x4EE3;&#x6307;&#x9488;&#x3002;<br>
5.9 &#x5B9A;&#x4E49;&#x53D8;&#x91CF;&#x5B8C;&#x6210;&#x540E;&#x7ACB;&#x5373;&#x521D;&#x59CB;&#x5316;&#xFF0C;&#x52FF;&#x7B49;&#x5230;&#x4F7F;&#x7528;&#x65F6;&#x624D;&#x8FDB;&#x884C;&#x3002;<br>
5.10 &#x5982;&#x679C;&#x6709;&#x66F4;&#x4F18;&#x96C5;&#x7684;&#x89E3;&#x51B3;&#x65B9;&#x6848;&#xFF0C;&#x4E0D;&#x8981;&#x4F7F;&#x7528;&#x5F3A;&#x5236;&#x7C7B;&#x578B;&#x8F6C;&#x6362;&#x3002;</p>
<h2 class="mume-header" id="%E5%85%AD-%E8%A1%A8%E8%BE%BE%E5%BC%8F">&#x516D;&#x3001;&#x8868;&#x8FBE;&#x5F0F;</h2>

<p>6.1 &#x907F;&#x514D;&#x5728;&#x8868;&#x8FBE;&#x5F0F;&#x4E2D;&#x7528;&#x8D4B;&#x503C;&#x8BED;&#x53E5;&#x3002;<br>
6.2 &#x907F;&#x514D;&#x5BF9;&#x6D6E;&#x70B9;&#x7C7B;&#x578B;&#x505A;&#x7B49;&#x4E8E;&#x6216;&#x4E0D;&#x7B49;&#x4E8E;&#x5224;&#x65AD;&#x3002;<br>
6.3 &#x4E0D;&#x80FD;&#x5C06;&#x679A;&#x4E3E;&#x7C7B;&#x578B;&#x8FDB;&#x884C;&#x8FD0;&#x7B97;&#x540E;&#x518D;&#x8D4B;&#x7ED9;&#x679A;&#x4E3E;&#x53D8;&#x91CF;&#x3002;<br>
6.4 &#x5728;&#x5FAA;&#x73AF;&#x8FC7;&#x7A0B;&#x4E2D;&#x4E0D;&#x8981;&#x4FEE;&#x6539;&#x5FAA;&#x73AF;&#x8BA1;&#x6570;&#x5668;&#x3002;<br>
6.5 &#x68C0;&#x6D4B;&#x7A7A;&#x6307;&#x9488;&#xFF0C;&#x7528; <code>if( p )</code><br>
6.6 &#x68C0;&#x6D4B;&#x975E;&#x7A7A;&#x6307;&#x9488;&#xFF0C;&#x7528; <code>if( ! p )</code></p>
<h2 class="mume-header" id="%E4%B8%83-%E5%87%BD%E6%95%B0">&#x4E03;&#x3001;&#x51FD;&#x6570;</h2>

<h3 class="mume-header" id="1%E5%BC%95%E7%94%A8">1.&#x5F15;&#x7528;</h3>

<p>1.1 &#x5F15;&#x7528;&#x7C7B;&#x578B;&#x4F5C;&#x4E3A;&#x8FD4;&#x56DE;&#x503C;&#xFF1A;&#x51FD;&#x6570;&#x5FC5;&#x987B;&#x8FD4;&#x56DE;&#x4E00;&#x4E2A;&#x5B58;&#x5728;&#x7684;&#x5BF9;&#x8C61;&#x3002;<br>
1.2 &#x5F15;&#x7528;&#x7C7B;&#x578B;&#x4F5C;&#x4E3A;&#x53C2;&#x6570;&#xFF1A;&#x8C03;&#x7528;&#x8005;&#x5FC5;&#x987B;&#x4F20;&#x9012;&#x4E00;&#x4E2A;&#x5B58;&#x5728;&#x7684;&#x5BF9;&#x8C61;&#x3002;</p>
<h3 class="mume-header" id="2%E5%B8%B8%E9%87%8F%E6%88%90%E5%91%98%E5%87%BD%E6%95%B0">2.&#x5E38;&#x91CF;&#x6210;&#x5458;&#x51FD;&#x6570;</h3>

<p>2.1 &#x8868;&#x793A;&#x8BE5;&#x51FD;&#x6570;&#x53EA;&#x8BFB;&#x53D6;&#x5BF9;&#x8C61;&#x7684;&#x5185;&#x5BB9;&#xFF0C;&#x4E0D;&#x4F1A;&#x5BF9;&#x5BF9;&#x8C61;&#x8FDB;&#x884C;&#x4FEE;&#x6539;&#x3002;</p>
<h3 class="mume-header" id="3%E8%BF%94%E5%9B%9E%E5%80%BC">3.&#x8FD4;&#x56DE;&#x503C;</h3>

<p>3.1 &#x9664;&#x5F00;void&#x51FD;&#x6570;&#xFF0C;&#x6784;&#x9020;&#x51FD;&#x6570;&#xFF0C;&#x6790;&#x6784;&#x51FD;&#x6570;&#xFF0C;&#x5176;&#x5B83;&#x51FD;&#x6570;&#x5FC5;&#x987B;&#x8981;&#x6709;&#x8FD4;&#x56DE;&#x503C;&#x3002;<br>
3.2 &#x5F53;&#x51FD;&#x6570;&#x8FD4;&#x56DE;&#x5F15;&#x7528;&#x6216;&#x6307;&#x9488;&#x65F6;&#xFF0C;&#x7528;&#x6587;&#x5B57;&#x63CF;&#x8FF0;&#x5176;&#x6709;&#x6548;&#x671F;&#x3002;</p>
<h3 class="mume-header" id="4%E5%86%85%E8%81%94%E5%87%BD%E6%95%B0">4.&#x5185;&#x8054;&#x51FD;&#x6570;</h3>

<p>4.1 &#x5185;&#x8054;&#x51FD;&#x6570;&#x5E94;&#x5C06;&#x51FD;&#x6570;&#x4F53;&#x653E;&#x5230;&#x7C7B;&#x4F53;&#x5916;&#x3002;<br>
4.2 &#x53EA;&#x6709;&#x7B80;&#x5355;&#x7684;&#x51FD;&#x6570;&#x624D;&#x6709;&#x5FC5;&#x8981;&#x8BBE;&#x8BA1;&#x4E3A;&#x5185;&#x8054;&#x51FD;&#x6570;&#xFF0C;&#x590D;&#x6742;&#x4E1A;&#x52A1;&#x903B;&#x8F91;&#x7684;&#x51FD;&#x6570;&#x4E0D;&#x8981;&#x8FD9;&#x4E48;&#x505A;&#x3002;<br>
4.3 &#x865A;&#x51FD;&#x6570;&#x4E0D;&#x8981;&#x8BBE;&#x8BA1;&#x4E3A;&#x5185;&#x8054;&#x51FD;&#x6570;&#x3002;</p>
<h3 class="mume-header" id="5%E5%87%BD%E6%95%B0%E5%8F%82%E6%95%B0">5.&#x51FD;&#x6570;&#x53C2;&#x6570;</h3>

<p>5.1 &#x53EA;&#x8BFB;&#x53D6;&#x8BE5;&#x53C2;&#x6570;&#x7684;&#x5185;&#x5BB9;&#xFF0C;&#x4E0D;&#x5BF9;&#x5176;&#x5185;&#x5BB9;&#x505A;&#x4FEE;&#x6539;&#xFF0C;&#x7528;&#x5E38;&#x91CF;&#x5F15;&#x7528;&#x3002;<br>
5.2 &#x4FEE;&#x6539;&#x53C2;&#x6570;&#x5185;&#x5BB9;&#xFF0C;&#x6216;&#x9700;&#x8981;&#x901A;&#x8FC7;&#x53C2;&#x6570;&#x8FD4;&#x56DE;&#xFF0C;&#x7528;&#x975E;&#x5E38;&#x91CF;&#x5E94;&#x7528;&#x3002;<br>
5.3 &#x7B80;&#x5355;&#x6570;&#x636E;&#x7C7B;&#x578B;&#x7528;&#x4F20;&#x503C;&#x65B9;&#x5F0F;&#x3002;<br>
5.4 &#x590D;&#x6742;&#x6570;&#x636E;&#x7C7B;&#x578B;&#x7528;&#x5F15;&#x7528;&#x6216;&#x6307;&#x9488;&#x65B9;&#x5F0F;&#x3002;</p>
<h2 class="mume-header" id="%E5%85%AB-%E7%B1%BB">&#x516B;&#x3001;&#x7C7B;</h2>

<h3 class="mume-header" id="1%E6%9E%84%E9%80%A0%E5%87%BD%E6%95%B0">1.&#x6784;&#x9020;&#x51FD;&#x6570;</h3>

<p>1.1 &#x6784;&#x9020;&#x51FD;&#x6570;&#x7684;&#x521D;&#x59CB;&#x5316;&#x5217;&#x8868;&#xFF0C;&#x5E94;&#x548C;&#x7C7B;&#x7684;&#x987A;&#x5E8F;&#x4E00;&#x81F4;&#x3002;<br>
1.2 &#x521D;&#x59CB;&#x5316;&#x5217;&#x8868;&#x4E2D;&#x7684;&#x6BCF;&#x4E2A;&#x9879;&#xFF0C;&#x5E94;&#x72EC;&#x5360;&#x4E00;&#x884C;&#x3002;<br>
1.3 &#x907F;&#x514D;&#x51FA;&#x73B0;&#x7528;&#x4E00;&#x4E2A;&#x6210;&#x5458;&#x521D;&#x59CB;&#x5316;&#x53E6;&#x4E00;&#x4E2A;&#x6210;&#x5458;&#x3002;<br>
1.4 &#x6784;&#x9020;&#x51FD;&#x6570;&#x5E94;&#x521D;&#x59CB;&#x5316;&#x6240;&#x6709;&#x6210;&#x5458;&#xFF0C;&#x5C24;&#x5176;&#x662F;&#x6307;&#x9488;&#x3002;<br>
1.5 &#x4E0D;&#x8981;&#x5728;&#x6784;&#x9020;&#x51FD;&#x6570;&#x548C;&#x6790;&#x6784;&#x51FD;&#x6570;&#x4E2D;&#x629B;&#x51FA;&#x5F02;&#x5E38;&#x3002;</p>
<h3 class="mume-header" id="2%E7%BA%AF%E8%99%9A%E5%87%BD%E6%95%B0">2.&#x7EAF;&#x865A;&#x51FD;&#x6570;</h3>

<p>2.1 M&#x7C7B;&#x7684;&#x865A;&#x51FD;&#x6570;&#x5E94;&#x8BBE;&#x8BA1;&#x4E3A;&#x7EAF;&#x865A;&#x51FD;&#x6570;&#x3002;</p>
<h3 class="mume-header" id="3%E6%9E%84%E9%80%A0%E5%92%8C%E6%9E%90%E6%9E%84%E5%87%BD%E6%95%B0">3.&#x6784;&#x9020;&#x548C;&#x6790;&#x6784;&#x51FD;&#x6570;</h3>

<p>3.1 &#x5982;&#x679C;&#x7C7B;&#x53EF;&#x4EE5;&#x7EE7;&#x627F;&#xFF0C;&#x5219;&#x5E94;&#x5C06;&#x7C7B;&#x6790;&#x6784;&#x51FD;&#x6570;&#x8BBE;&#x8BA1;&#x4E3A;&#x865A;&#x51FD;&#x6570;&#x3002;<br>
3.2 &#x5982;&#x679C;&#x7C7B;&#x4E0D;&#x5141;&#x8BB8;&#x7EE7;&#x627F;&#xFF0C;&#x5219;&#x5E94;&#x5C06;&#x7C7B;&#x6790;&#x6784;&#x51FD;&#x6570;&#x8BBE;&#x8BA1;&#x4E3A;&#x975E;&#x865A;&#x51FD;&#x6570;&#x3002;<br>
3.3 &#x5982;&#x679C;&#x7C7B;&#x4E0D;&#x80FD;&#x88AB;&#x590D;&#x5236;&#xFF0C;&#x5219;&#x5E94;&#x5C06;&#x62F7;&#x8D1D;&#x6784;&#x9020;&#x51FD;&#x6570;&#x548C;&#x8D4B;&#x503C;&#x8FD0;&#x7B97;&#x7B26;&#x8BBE;&#x8BA1;&#x4E3A;&#x79C1;&#x6709;&#x7684;&#x3002;<br>
3.4 &#x5982;&#x679C;&#x4E3A;&#x7C7B;&#x8BBE;&#x8BA1;&#x4E86;&#x6784;&#x9020;&#x51FD;&#x6570;&#xFF0C;&#x5219;&#x5E94;&#x6709;&#x6790;&#x6784;&#x51FD;&#x6570;&#x3002;</p>
<h3 class="mume-header" id="4%E6%88%90%E5%91%98%E5%8F%98%E9%87%8F">4.&#x6210;&#x5458;&#x53D8;&#x91CF;</h3>

<p>4.1 &#x5C3D;&#x91CF;&#x907F;&#x514D;&#x4F7F;&#x7528;mutable&#x548C;Volatile&#x3002;<br>
4.2 &#x5C3D;&#x91CF;&#x907F;&#x514D;&#x4F7F;&#x7528;&#x516C;&#x6709;&#x6210;&#x5458;&#x53D8;&#x91CF;&#x3002;</p>
<h3 class="mume-header" id="5%E6%88%90%E5%91%98%E5%87%BD%E6%95%B0">5.&#x6210;&#x5458;&#x51FD;&#x6570;</h3>

<p>5.1 &#x52AA;&#x529B;&#x4F7F;&#x7C7B;&#x7684;&#x63A5;&#x53E3;&#x5C11;&#x800C;&#x5B8C;&#x5907;&#x3002;<br>
5.2 &#x5C3D;&#x91CF;&#x4F7F;&#x7528;&#x5E38;&#x6210;&#x5458;&#x51FD;&#x6570;&#x4EE3;&#x66FF;&#x975E;&#x5E38;&#x6210;&#x5458;&#x51FD;&#x6570;&#xFF0C;const&#x51FD;&#x6570;<br>
5.3 &#x9664;&#x975E;&#x7279;&#x522B;&#x7406;&#x7531;&#xFF0C;&#x7EDD;&#x4E0D;&#x8981;&#x91CD;&#x65B0;&#x5B9A;&#x4E49;(&#x7EE7;&#x627F;&#x6765;&#x7684;)&#x975E;&#x865A;&#x51FD;&#x6570;&#x3002;&#xFF08;&#x8FD9;&#x6837;&#x662F;&#x8986;&#x76D6;&#xFF0C;&#x57FA;&#x7C7B;&#x7684;&#x67D0;&#x4E9B;&#x5C5E;&#x6027;&#x65E0;&#x521D;&#x59CB;&#x5316;&#xFF09;</p>
<h3 class="mume-header" id="6%E7%BB%A7%E6%89%BF">6.&#x7EE7;&#x627F;</h3>

<p>6.1 &#x7EE7;&#x627F;&#x5FC5;&#x987B;&#x6EE1;&#x8DB3;IS-A&#x7684;&#x5173;&#x7CFB;&#xFF0C;HAS-A&#x5E94;&#x91C7;&#x7528;&#x5305;&#x542B;&#x3002;<br>
6.2 &#x865A;&#x51FD;&#x6570;&#x4E0D;&#x8981;&#x91C7;&#x7528;&#x9ED8;&#x8BA4;&#x53C2;&#x6570;&#x3002;<br>
6.3 &#x9664;&#x975E;&#x7279;&#x522B;&#x9700;&#x8981;&#xFF0C;&#x5E94;&#x907F;&#x514D;&#x8BBE;&#x8BA1;&#x5927;&#x800C;&#x5168;&#x7684;&#x865A;&#x51FD;&#x6570;&#xFF0C;&#x865A;&#x51FD;&#x6570;&#x529F;&#x80FD;&#x8981;&#x5355;&#x4E00;&#x3002;<br>
6.4 &#x9664;&#x975E;&#x7279;&#x522B;&#x9700;&#x8981;&#xFF0C;&#x907F;&#x514D;&#x5C06;&#x57FA;&#x7C7B;&#x5F3A;&#x5236;&#x8F6C;&#x6362;&#x6210;&#x6D3E;&#x751F;&#x7C7B;&#x3002;</p>
<h3 class="mume-header" id="7%E5%8F%8B%E5%85%83">7.&#x53CB;&#x5143;</h3>

<p>7.1 &#x5C3D;&#x91CF;&#x907F;&#x514D;&#x4F7F;&#x7528;&#x53CB;&#x5143;&#x51FD;&#x6570;&#x548C;&#x53CB;&#x5143;&#x7C7B;&#x3002;</p>
<h2 class="mume-header" id="%E4%B9%9D-%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86">&#x4E5D;&#x3001;&#x9519;&#x8BEF;&#x5904;&#x7406;</h2>

<p>9.1 &#x7533;&#x8BF7;&#x5185;&#x5B58;&#x7528;new&#x64CD;&#x4F5C;&#x7B26;&#x3002;<br>
9.2 &#x91CA;&#x653E;&#x5185;&#x5B58;&#x7528;delete&#x64CD;&#x4F5C;&#x7B26;&#x3002;<br>
9.3 new&#x548C;delete&#xFF0C;new[]&#x548C;delete[]&#x6210;&#x5BF9;&#x4F7F;&#x7528;&#x3002;<br>
9.4 &#x7533;&#x8BF7;&#x5185;&#x5B58;&#x5B8C;&#x6210;&#x4E4B;&#x540E;&#xFF0C;&#x8981;&#x68C0;&#x6D4B;&#x6307;&#x9488;&#x662F;&#x5426;&#x7533;&#x8BF7;&#x6210;&#x529F;&#xFF0C;&#x5904;&#x7406;&#x7533;&#x8BF7;&#x5931;&#x8D25;&#x7684;&#x60C5;&#x51B5;&#x3002;<br>
9.5 &#x8C01;&#x7533;&#x8BF7;&#x8C01;&#x91CA;&#x653E;&#x3002;&#x4F18;&#x5148;&#x7EA7;&#xFF1A;&#x51FD;&#x6570;&#x5C42;&#x9762;&#xFF0C;&#x7C7B;&#x5C42;&#x9762;&#xFF0C;&#x6A21;&#x5757;&#x5C42;&#x9762;&#x3002;<br>
9.6 &#x91CA;&#x653E;&#x5185;&#x5B58;&#x5B8C;&#x6210;&#x540E;&#x5C06;&#x6307;&#x9488;&#x8D4B;&#x7A7A;&#xFF0C;&#x907F;&#x514D;&#x51FA;&#x73B0;&#x91CE;&#x6307;&#x9488;&#x3002;<br>
9.7 &#x4F7F;&#x7528;&#x6307;&#x9488;&#x524D;&#x8FDB;&#x884C;&#x5224;&#x65AD;&#x5408;&#x6CD5;&#x6027;&#xFF0C;&#x5E94;&#x8003;&#x8651;&#x5230;&#x4E3A;&#x7A7A;&#x7684;&#x60C5;&#x51B5;&#x7684;&#x5904;&#x7406;&#x3002;<br>
9.8 &#x4F7F;&#x7528;&#x6570;&#x7EC4;&#x65F6;&#xFF0C;&#x5E94;&#x5148;&#x5224;&#x65AD;&#x7D22;&#x5F15;&#x7684;&#x6709;&#x6548;&#x6027;&#xFF0C;&#x5904;&#x7406;&#x65E0;&#x6548;&#x7684;&#x7D22;&#x5F15;&#x7684;&#x60C5;&#x51B5;&#x3002;<br>
9.9 &#x4EE3;&#x7801;&#x4E0D;&#x80FD;&#x51FA;&#x73B0;&#x7F16;&#x8BD1;&#x8B66;&#x544A;&#x3002;<br>
9.10 &#x4F7F;&#x7528;&#x9519;&#x8BEF;&#x4F20;&#x9012;&#x7684;&#x9519;&#x8BEF;&#x5904;&#x7406;&#x601D;&#x60F3;&#x3002;<br>
9.11 &#x536B;&#x53E5;&#x98CE;&#x683C;&#xFF1A;&#x5148;&#x5904;&#x7406;&#x6240;&#x6709;&#x53EF;&#x80FD;&#x53D1;&#x751F;&#x9519;&#x8BEF;&#x7684;&#x60C5;&#x51B5;&#xFF0C;&#x518D;&#x5904;&#x7406;&#x6B63;&#x5E38;&#x60C5;&#x51B5;&#x3002;<br>
9.12 &#x5D4C;&#x5957;do-while(0)&#x5B8F;&#xFF1A;&#x76EE;&#x7684;&#x662F;&#x5C06;&#x4E00;&#x7EC4;&#x8BED;&#x53E5;&#x53D8;&#x6210;&#x4E00;&#x4E2A;&#x8BED;&#x53E5;&#xFF0C;&#x907F;&#x514D;&#x88AB;&#x5176;&#x4ED6;if&#x7B49;&#x4E2D;&#x65AD;&#x3002;</p>
<h2 class="mume-header" id="%E5%8D%81-%E6%80%A7%E8%83%BD">&#x5341;&#x3001;&#x6027;&#x80FD;</h2>

<p>10.1 &#x4F7F;&#x7528;&#x524D;&#x5411;&#x58F0;&#x660E;&#x4EE3;&#x66FF;#include&#x6307;&#x4EE4;&#x3002;Class M;<br>
10.2 &#x5C3D;&#x91CF;&#x7528;++i&#x4EE3;&#x66FF;i++&#x3002;&#x5373;&#x7528;&#x524D;&#x7F00;&#x4EE3;&#x66FF;&#x540E;&#x7F00;&#x8FD0;&#x7B97;&#x3002;<br>
10.3 &#x5C3D;&#x91CF;&#x5728;for&#x5FAA;&#x73AF;&#x4E4B;&#x524D;&#xFF0C;&#x5148;&#x5199;&#x8BA1;&#x7B97;&#x4F30;&#x503C;&#x8868;&#x8FBE;&#x5F0F;&#x3002;<br>
10.4 &#x5C3D;&#x91CF;&#x907F;&#x514D;&#x5728;&#x5FAA;&#x73AF;&#x4F53;&#x5185;&#x90E8;&#x5B9A;&#x4E49;&#x5BF9;&#x8C61;&#x3002;<br>
10.5 &#x907F;&#x514D;&#x5BF9;&#x8C61;&#x62F7;&#x8D1D;&#xFF0C;&#x5C24;&#x5176;&#x662F;&#x4EE3;&#x4EF7;&#x5F88;&#x9AD8;&#x7684;&#x5BF9;&#x8C61;&#x62F7;&#x8D1D;&#x3002;<br>
10.6 &#x907F;&#x514D;&#x751F;&#x6210;&#x4E34;&#x65F6;&#x5BF9;&#x8C61;&#xFF0C;&#x5C24;&#x5176;&#x662F;&#x5927;&#x7684;&#x4E34;&#x65F6;&#x5BF9;&#x8C61;&#x3002;<br>
10.7 &#x6CE8;&#x610F;&#x5927;&#x5C3A;&#x5BF8;&#x5BF9;&#x8C61;&#x6570;&#x7EC4;&#x3002;<br>
10.8 <code>80-20</code>&#x539F;&#x5219;&#xFF1A;&#x4E00;&#x4E2A;&#x7A0B;&#x5E8F;80%&#x7684;&#x8D44;&#x6E90;&#x7528;&#x4E8E;20%&#x7684;&#x4EE3;&#x7801;&#x4E0A;(80%&#x7684;&#x6267;&#x884C;&#x65F6;&#x95F4;&#x82B1;&#x5728;&#x5927;&#x7EA6;20%&#x7684;&#x4EE3;&#x7801;&#x8EAB;&#x4E0A;,80%&#x7684;&#x5185;&#x5B58;&#x88AB;&#x5927;&#x7EA6;20%&#x7684;&#x4EE3;&#x7801;&#x4F7F;&#x7528;,80%&#x7684;&#x78C1;&#x76D8;&#x8BBF;&#x95EE;&#x52A8;&#x4F5C;&#x7531;20%&#x7684;&#x4EE3;&#x7801;&#x6267;&#x884C;,80%&#x7684;&#x7EF4;&#x62A4;&#x529B;&#x6C14;&#x82B1;&#x5728;20%&#x7684;&#x4EE3;&#x7801;&#x4E0A;&#x9762;)&#x3002;80-20&#x6CD5;&#x5219;&#x7684;&#x91CD;&#x70B9;&#x4E0D;&#x5728;&#x4E8E;&#x5B57;&#x9762;&#x4E0A;&#x7684;&#x6570;&#x5B57;,&#x800C;&#x662F;&#x5F3A;&#x8C03;&quot;<strong>&#x8F6F;&#x4EF6;&#x7684;&#x6574;&#x4F53;&#x6027;&#x80FD;&#x51E0;&#x4E4E;&#x603B;&#x662F;&#x7531;&#x5176;&#x6784;&#x6210;&#x8981;&#x7D20;(&#x4EE3;&#x7801;)&#x7684;&#x4E00;&#x5C0F;&#x90E8;&#x5206;&#x51B3;&#x5B9A;</strong>&quot;&#x3002;</p>
<h2 class="mume-header" id="%E5%8D%81%E4%B8%80-%E5%85%BC%E5%AE%B9%E6%80%A7">&#x5341;&#x4E00;&#x3001;&#x517C;&#x5BB9;&#x6027;</h2>

<p>11.1 &#x9075;&#x5B88;ANSI C&#x548C;ISO C++&#x56FD;&#x9645;&#x6807;&#x51C6;&#x3002;<br>
11.2 &#x786E;&#x4FDD;&#x7C7B;&#x578B;&#x8F6C;&#x6362;&#x4E0D;&#x4F1A;&#x4E22;&#x5931;&#x4FE1;&#x606F;&#x3002;<br>
11.3 &#x6CE8;&#x610F;&#x53CC;&#x5B57;&#x8282;&#x5B57;&#x7B26;&#x7684;&#x517C;&#x5BB9;&#x6027;&#x3002;<br>
11.4 &#x6CE8;&#x610F;&#x8FD0;&#x7B97;&#x6EA2;&#x51FA;&#x95EE;&#x9898;&#x3002;<br>
11.5 &#x4E0D;&#x8981;&#x5047;&#x8BBE;&#x7C7B;&#x578B;&#x7684;&#x5B58;&#x50A8;&#x5C3A;&#x5BF8;&#x3002;<br>
11.6 &#x4E0D;&#x8981;&#x5047;&#x8BBE;&#x8868;&#x8FBE;&#x5F0F;&#x7684;&#x8FD0;&#x7B97;&#x987A;&#x5E8F;&#x3002;<br>
11.7 &#x4E0D;&#x8981;&#x5047;&#x8BBE;&#x51FD;&#x6570;&#x53C2;&#x6570;&#x7684;&#x8BA1;&#x7B97;&#x987A;&#x5E8F;&#x3002;<br>
11.8 &#x4E0D;&#x8981;&#x5047;&#x8BBE;&#x4E0D;&#x540C;&#x6E90;&#x6587;&#x4EF6;&#x4E2D;&#x9759;&#x6001;&#x6216;&#x5168;&#x5C40;&#x53D8;&#x91CF;&#x7684;&#x521D;&#x59CB;&#x5316;&#x987A;&#x5E8F;&#x3002;<br>
11.9 &#x4E0D;&#x8981;&#x4F9D;&#x8D56;&#x7F16;&#x8BD1;&#x5668;&#x57FA;&#x4E8E;&#x5B9E;&#x73B0;&#x3001;&#x672A;&#x660E;&#x786E;&#x6216;&#x672A;&#x5B9A;&#x4E49;&#x7684;&#x529F;&#x80FD;&#x3002;<br>
11.10 &#x5C06;&#x6240;&#x6709;#include&#x7684;&#x6587;&#x4EF6;&#x540D;&#x89C6;&#x4E3A;&#x5927;&#x5C0F;&#x5199;&#x654F;&#x611F;&#x3002;<br>
11.20 &#x907F;&#x514D;&#x4F7F;&#x7528;&#x5168;&#x5C40;&#x53D8;&#x91CF;&#x3001;&#x9759;&#x6001;&#x53D8;&#x91CF;&#x3001;&#x51FD;&#x6570;&#x9759;&#x6001;&#x53D8;&#x91CF;&#x3001;&#x7C7B;&#x9759;&#x6001;&#x53D8;&#x91CF;&#x3002;&#x5728;&#x4F7F;&#x7528;&#x9759;&#x6001;&#x5E93;&#xFF0C;&#x52A8;&#x6001;&#x5E93;&#xFF0C;&#x591A;&#x7EBF;&#x7A0B;&#x73AF;&#x5883;&#x65F6;&#xFF0C;&#x4F1A;&#x5BFC;&#x81F4;&#x517C;&#x5BB9;&#x6027;&#x95EE;&#x9898;&#x3002;<br>
11.21 &#x4E0D;&#x8981;&#x91CD;&#x65B0;&#x5B9E;&#x73B0;&#x6807;&#x51C6;&#x5E93;&#x51FD;&#x6570;,&#x5982;STL&#x5DF2;&#x7ECF;&#x5B58;&#x5728;&#x7684;&#x3002;</p>

      </div>
      <div class="md-sidebar-toc"><ul>
<li><a href="#%E4%B8%80-%E6%96%87%E4%BB%B6%E6%8E%92%E7%89%88%E6%96%B9%E9%9D%A2">&#x4E00;&#x3001;&#x6587;&#x4EF6;&#x6392;&#x7248;&#x65B9;&#x9762;</a>
<ul>
<li><a href="#1%E5%8C%85%E5%90%AB%E5%A4%B4%E6%96%87%E4%BB%B6">1.&#x5305;&#x542B;&#x5934;&#x6587;&#x4EF6;</a></li>
<li><a href="#2h%E5%92%8Ccpp%E6%96%87%E4%BB%B6">2.h&#x548C;cpp&#x6587;&#x4EF6;</a></li>
<li><a href="#3%E6%96%87%E4%BB%B6%E7%BB%93%E6%9E%84">3.&#x6587;&#x4EF6;&#x7ED3;&#x6784;</a></li>
<li><a href="#4%E7%A9%BA%E8%A1%8C">4.&#x7A7A;&#x884C;</a></li>
</ul>
</li>
<li><a href="#%E4%BA%8C-%E6%B3%A8%E9%87%8A%E6%96%B9%E9%9D%A2">&#x4E8C;&#x3001;&#x6CE8;&#x91CA;&#x65B9;&#x9762;</a>
<ul>
<li><a href="#1%E6%96%87%E4%BB%B6%E5%A4%B4%E6%B3%A8%E9%87%8A">1.&#x6587;&#x4EF6;&#x5934;&#x6CE8;&#x91CA;</a></li>
<li><a href="#2%E5%87%BD%E6%95%B0%E6%B3%A8%E9%87%8A">2.&#x51FD;&#x6570;&#x6CE8;&#x91CA;</a></li>
</ul>
</li>
<li><a href="#%E4%B8%89-%E5%91%BD%E5%90%8D%E6%96%B9%E9%9D%A2">&#x4E09;&#x3001;&#x547D;&#x540D;&#x65B9;&#x9762;</a>
<ul>
<li><a href="#1%E5%8E%9F%E5%88%99">1.&#x539F;&#x5219;</a></li>
<li><a href="#2tcmr%E7%B1%BB">2.T,C,M,R&#x7C7B;</a></li>
<li><a href="#3%E5%87%BD%E6%95%B0%E5%90%8D">3.&#x51FD;&#x6570;&#x540D;</a></li>
<li><a href="#4%E5%87%BD%E6%95%B0%E5%8F%82%E6%95%B0">4.&#x51FD;&#x6570;&#x53C2;&#x6570;</a></li>
<li><a href="#5%E6%88%90%E5%91%98%E5%8F%98%E9%87%8F">5.&#x6210;&#x5458;&#x53D8;&#x91CF;</a></li>
<li><a href="#6%E5%B1%80%E9%83%A8%E5%8F%98%E9%87%8F">6.&#x5C40;&#x90E8;&#x53D8;&#x91CF;</a></li>
<li><a href="#7%E5%85%A8%E5%B1%80%E5%8F%98%E9%87%8F">7.&#x5168;&#x5C40;&#x53D8;&#x91CF;</a></li>
<li><a href="#8%E7%B1%BB%E5%90%8D">8.&#x7C7B;&#x540D;</a></li>
<li><a href="#9%E9%A3%8E%E6%A0%BC%E5%85%BC%E5%AE%B9%E6%80%A7">9.&#x98CE;&#x683C;&#x517C;&#x5BB9;&#x6027;</a></li>
</ul>
</li>
<li><a href="#%E5%9B%9B-%E4%BB%A3%E7%A0%81%E9%A3%8E%E6%A0%BC%E6%96%B9%E9%9D%A2">&#x56DB;&#x3001;&#x4EE3;&#x7801;&#x98CE;&#x683C;&#x65B9;&#x9762;</a>
<ul>
<li><a href="#1tab%E5%92%8C%E7%A9%BA%E6%A0%BC">1.Tab&#x548C;&#x7A7A;&#x683C;</a></li>
<li><a href="#2%E7%B1%BB%E5%9E%8B%E5%AE%9A%E4%B9%89%E5%92%8C">2.&#x7C7B;&#x578B;&#x5B9A;&#x4E49;&#x548C;{</a></li>
<li><a href="#3%E5%87%BD%E6%95%B0">3.&#x51FD;&#x6570;</a></li>
<li><a href="#4%E4%BB%A3%E7%A0%81%E5%9D%97">4.&#x4EE3;&#x7801;&#x5757;</a></li>
<li><a href="#5else">5.else</a></li>
<li><a href="#6%E4%BB%A3%E7%A0%81%E8%A1%8C">6.&#x4EE3;&#x7801;&#x884C;</a></li>
<li><a href="#7switch%E8%AF%AD%E5%8F%A5">7.switch&#x8BED;&#x53E5;</a></li>
<li><a href="#8%E5%BE%AA%E7%8E%AF">8.&#x5FAA;&#x73AF;</a></li>
<li><a href="#9%E7%B1%BB">9.&#x7C7B;</a></li>
<li><a href="#10%E5%AE%8F">10.&#x5B8F;</a></li>
<li><a href="#11goto">11.goto</a></li>
</ul>
</li>
<li><a href="#%E4%BA%94-%E7%B1%BB%E5%9E%8B">&#x4E94;&#x3001;&#x7C7B;&#x578B;</a></li>
<li><a href="#%E5%85%AD-%E8%A1%A8%E8%BE%BE%E5%BC%8F">&#x516D;&#x3001;&#x8868;&#x8FBE;&#x5F0F;</a></li>
<li><a href="#%E4%B8%83-%E5%87%BD%E6%95%B0">&#x4E03;&#x3001;&#x51FD;&#x6570;</a>
<ul>
<li><a href="#1%E5%BC%95%E7%94%A8">1.&#x5F15;&#x7528;</a></li>
<li><a href="#2%E5%B8%B8%E9%87%8F%E6%88%90%E5%91%98%E5%87%BD%E6%95%B0">2.&#x5E38;&#x91CF;&#x6210;&#x5458;&#x51FD;&#x6570;</a></li>
<li><a href="#3%E8%BF%94%E5%9B%9E%E5%80%BC">3.&#x8FD4;&#x56DE;&#x503C;</a></li>
<li><a href="#4%E5%86%85%E8%81%94%E5%87%BD%E6%95%B0">4.&#x5185;&#x8054;&#x51FD;&#x6570;</a></li>
<li><a href="#5%E5%87%BD%E6%95%B0%E5%8F%82%E6%95%B0">5.&#x51FD;&#x6570;&#x53C2;&#x6570;</a></li>
</ul>
</li>
<li><a href="#%E5%85%AB-%E7%B1%BB">&#x516B;&#x3001;&#x7C7B;</a>
<ul>
<li><a href="#1%E6%9E%84%E9%80%A0%E5%87%BD%E6%95%B0">1.&#x6784;&#x9020;&#x51FD;&#x6570;</a></li>
<li><a href="#2%E7%BA%AF%E8%99%9A%E5%87%BD%E6%95%B0">2.&#x7EAF;&#x865A;&#x51FD;&#x6570;</a></li>
<li><a href="#3%E6%9E%84%E9%80%A0%E5%92%8C%E6%9E%90%E6%9E%84%E5%87%BD%E6%95%B0">3.&#x6784;&#x9020;&#x548C;&#x6790;&#x6784;&#x51FD;&#x6570;</a></li>
<li><a href="#4%E6%88%90%E5%91%98%E5%8F%98%E9%87%8F">4.&#x6210;&#x5458;&#x53D8;&#x91CF;</a></li>
<li><a href="#5%E6%88%90%E5%91%98%E5%87%BD%E6%95%B0">5.&#x6210;&#x5458;&#x51FD;&#x6570;</a></li>
<li><a href="#6%E7%BB%A7%E6%89%BF">6.&#x7EE7;&#x627F;</a></li>
<li><a href="#7%E5%8F%8B%E5%85%83">7.&#x53CB;&#x5143;</a></li>
</ul>
</li>
<li><a href="#%E4%B9%9D-%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86">&#x4E5D;&#x3001;&#x9519;&#x8BEF;&#x5904;&#x7406;</a></li>
<li><a href="#%E5%8D%81-%E6%80%A7%E8%83%BD">&#x5341;&#x3001;&#x6027;&#x80FD;</a></li>
<li><a href="#%E5%8D%81%E4%B8%80-%E5%85%BC%E5%AE%B9%E6%80%A7">&#x5341;&#x4E00;&#x3001;&#x517C;&#x5BB9;&#x6027;</a></li>
</ul>
</div>
      <a id="sidebar-toc-btn">&#x2261;</a>
    
    
    
    
    
    
    
    
<script>

var sidebarTOCBtn = document.getElementById('sidebar-toc-btn')
sidebarTOCBtn.addEventListener('click', function(event) {
  event.stopPropagation()
  if (document.body.hasAttribute('html-show-sidebar-toc')) {
    document.body.removeAttribute('html-show-sidebar-toc')
  } else {
    document.body.setAttribute('html-show-sidebar-toc', true)
  }
})
</script>
      
  
    </body></html>